Enhancements
- Make
Ecto.Schema.schema/2
configuration uniform - Add
Ecto.Changeset
which is able to filter, cast and validate parameters for changes - Support custom types via the
Ecto.Type
behaviour - Support
read_after_writes
configuration for reading particular fields after we insert or update entries in the repository
Bug fixes
- Require interpolation operator in joins
Deprecations
- Validations are deprecated in favor of
Ecto.Changeset
validations def conf
in the repository is deprecated, instead pass the :otp_app option onuse Ecto.Repo
and define the repository configuration in theconfig/config.exs
file. Some features like generators and migrations will be disable until you convert to the new configuration
Backwards incompatible changes
@schema_defaults
was removed in favor of setting@primary_key
and@foreign_key_type
directlyEcto.Schema.schema/2
options were removed in favor of setting@primary_key
and@foreign_key_type
before theschema/2
callEcto.Model.Schema
has been renamed toEcto.Schema
before_insert
,after_insert
,before_update
andafter_update
inEcto.Model.Callbacks
now receive changesets