Releases: gjaldon/ecto_enum
Releases · gjaldon/ecto_enum
Ecto 3.0 and above support (PG)
Bugfix and typespecs
- EctoEnum now generates typespecs for dialyzer.
- Fixed a bug where the
create_type/0
with the drop was not being created.
Fix compiler warnings for multiple function clauses
v1.3.1 Version 1.3.1
v1.3.0: Merge pull request #77 from gjaldon/refactor-internals
- Refactored internals to make it easier to support
use
ing feature and string-backed enums. - Add
use
ing functionality so we can useEctoEnum
orEctoEnum.Postgres
to define Ecto Enums. - Support for string-backed enums!
v1.2.0
1.2.0
- Update formatter config to allow use of
defenum/2
anddefenum/3
without parens. - Enum function
create_type/0
is now reversible and can be used inchange
in migration files. defenum/4
added which accepts options for creating a Postgres Enum type in a specified schema.- Added
EctoEnum.validate_enum/3
which is a helper function for validating enum values in a changeset. - Added
valid_value?/1
to the custom enum which checks if the value passed is a valid enum value.
Loosen dep requirements
v1.1.0 Loosen dependency requirements
v1.0.2
Ecto 2.1 support!
Updated tests, dependencies, and addressed new compiler warnings
Ecto 2.0 support!
Finally have official Ecto 2.0 support. The release was delayed because there were changes in Postgrex that broke native Enum support for Postgres. Thankfully, that was addressed by @fishcakez!
Support Postgres's Enum Type
- There's now an option to use Enumerated Types in Postgres
- New
__valid_values__()
is automatically defined in your custom Enum module to see all valid values accepted by your custom Enum type - Reorganized tests for PG and MySQL