Fixed
- Fixed allowed operators for
Ecto.Enum
fields in Ecto 3.12. - Fixed type expansion when passing values with shortened syntax to
Flop.Filter.expand_type/1
. - Updated documentation example for setting
ecto_type
to parameterized types.
Upgrade Guide
If you pass a parameterized type as ecto_type
option, ensure that you use
Ecto.ParameterizedType.init/2
instead of using the tuple representation as
suggested in the documentation before. The tuple representation is an internal
representation of Ecto and was changed in Ecto 3.12.
[
- ecto_type: {:parameterized, Ecto.Enum, Ecto.Enum.init(values: [:one, :two])}
+ ecto_type: Ecto.ParameterizedType.init(Ecto.Enum, values: [:one, :two])
]
For Ecto.Enum
specifically, you can also use the short syntax
{:ecto_enum, [:one, :two]}
.