Skip to content

Commit 108d01b

Browse files
somozaJulian Somoza
andauthored
Add/show the options item ":default" on the @doc block. (#404)
Co-authored-by: Julian Somoza <julian@animus.com.ar>
1 parent 9150163 commit 108d01b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ecto/migration.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,9 @@ defmodule Ecto.Migration do
10261026
Setting it to `false` disables the column.
10271027
* `:type` - the type of the `:inserted_at` and `:updated_at` columns.
10281028
Defaults to `:naive_datetime`.
1029+
* `:default` - the columns' default value. It can be a string, number, empty
1030+
list, list of strings, list of numbers, or a fragment generated by
1031+
`fragment/1`.
10291032
10301033
"""
10311034
def timestamps(opts \\ []) when is_list(opts) do

0 commit comments

Comments
 (0)