hex ecto 0.5.0
on Hex

latest releases: 3.11.2, 3.11.1, 3.11.0...
9 years ago

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 on use Ecto.Repo and define the repository configuration in the config/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 directly
  • Ecto.Schema.schema/2 options were removed in favor of setting @primary_key and @foreign_key_type before the schema/2 call
  • Ecto.Model.Schema has been renamed to Ecto.Schema
  • before_insert, after_insert, before_update and after_update in Ecto.Model.Callbacks now receive changesets

Don't miss a new ecto release

NewReleases is sending notifications on new releases.