github gjaldon/ecto_enum v1.2.0

latest releases: v1.4.0, v1.3.2, v1.3.1...
5 years ago

1.2.0

  • Update formatter config to allow use of defenum/2 and defenum/3 without parens.
  • Enum function create_type/0 is now reversible and can be used in change 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.

Don't miss a new ecto_enum release

NewReleases is sending notifications on new releases.