- EctoEnum supports Ecto 3.0
- Uses ecto and ecto_sql >= 3.0 deps
- Updates tests
- Add required
embed_as/1andequal?/2callbacks forEcto.Typemodules
- EctoEnum now generates typespecs for dialyzer.
- Fixed a bug where the
create_type/0with the drop was not being created.
- Fixed a bug where multiple function clauses of
castanddumpwere defined byEctoEnum.Use. This error happens when defining string-backed enums, since multiple function clauses for the string value is defined.
- Refactored internals to make it easier to support
useing feature and string-backed enums. - Add
useing functionality so we can useEctoEnumorEctoEnum.Postgresto define Ecto Enums. - Support for string-backed enums!
- Update formatter config to allow use of
defenum/2anddefenum/3without parens. - Enum function
create_type/0is now reversible and can be used inchangein migration files. defenum/4added which accepts options for creating a Postgres Enum type in a specified schema.- Added
EctoEnum.validate_enum/3which is a helper function for validating enum values in a changeset. - Added
valid_value?/1to the custom enum which checks if the value passed is a valid enum value.
- Fix
defenum/2anddefenum/3not accepting variables
-
Integration with Ecto 2.0 If you encounter any compiler or deprecation warnings related to Ecto 2.0, please create an issue for it.
-
Support for native Postgres Enum. We make use of Postgres' user-defined types