File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1283,8 +1283,8 @@ defmodule Ecto.Migration do
1283
1283
@ doc """
1284
1284
Adds `:inserted_at` and `:updated_at` timestamp columns.
1285
1285
1286
- Those columns are of `:naive_datetime` type and by default cannot be null. A
1287
- list of `opts` can be given to customize the generated fields.
1286
+ Those columns are of `:naive_datetime` type. A list of `opts` can be given
1287
+ to customize the generated fields.
1288
1288
1289
1289
Following options will override the repo configuration specified by
1290
1290
`:migration_timestamps` option.
@@ -1300,6 +1300,8 @@ defmodule Ecto.Migration do
1300
1300
* `:default` - the columns' default value. It can be a string, number, empty
1301
1301
list, list of strings, list of numbers, or a fragment generated by
1302
1302
`fragment/1`.
1303
+ * `:null` - determines whether the column accepts null values. Defaults to
1304
+ `false`.
1303
1305
1304
1306
"""
1305
1307
def timestamps ( opts \\ [ ] ) when is_list ( opts ) do
You can’t perform that action at this time.
0 commit comments