Skip to content

Commit

Permalink
Add/show the options item ":default" on the @doc block. (#404)
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Somoza <julian@animus.com.ar>
  • Loading branch information
somoza and Julian Somoza authored May 11, 2022
1 parent 9150163 commit 108d01b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ecto/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,9 @@ defmodule Ecto.Migration do
Setting it to `false` disables the column.
* `:type` - the type of the `:inserted_at` and `:updated_at` columns.
Defaults to `:naive_datetime`.
* `:default` - the columns' default value. It can be a string, number, empty
list, list of strings, list of numbers, or a fragment generated by
`fragment/1`.
"""
def timestamps(opts \\ []) when is_list(opts) do
Expand Down

0 comments on commit 108d01b

Please sign in to comment.