Enhancements
- Add
validate_number/3
toEcto.Changeset
- Add cardinality to
Ecto.Association.NotLoaded
- Allow
{"source", Model}
as a source in queries and associations - Add support for usec in
Ecto.Date
,Ecto.Time
andEcto.DateTime
- Add
usec: true
support toEcto.Schema.timestamps/1
- Create database in
ecto.migrate
if one does not exist Repo.preload/2
no longer preloads already loaded associations
Backwards incompatible changes
- Using
distict: EXPR
automatically sets the given distinct expressions inorder_by
__state__
field has been removed in favor of a__meta__
field which includes the state and the model source- Error messages in
Ecto.Changeset
now return strings instead of atoms Ecto.Model.primary_key/1
now returns a keyword list of primary key fields, returning an empty list when there is no primary key. UseEcto.Model.primary_key!/1
for the raising variant- Use simple representations when converting
Ecto.Date
,Ecto.Time
andEcto.DateTime
to strings. Useto_iso8601
for the ISO specific formatting @timestamps_type Your.Type
was removed in favor of@timestamps_opts [type: Your.Type]