New
v1.2.0
1.2.0
- 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.