Ecto.Model.Timestamps
Automatically manage timestamps.
If the user calls Ecto.Schema.timestamps/0
in their schema, the
model will automatically set callbacks based on the schema information
to update the configured :inserted_at
and :updated_at
fields
according to the given type.
Summary↑
put_timestamp(changeset, field, type, use_usec) | Puts a timestamp in the changeset with the given field and type |
Functions
Puts a timestamp in the changeset with the given field and type.