Ecto Enum Versions Save

Ecto extension to support enums in models

v1.4.0

4 years ago
  • EctoEnum supports Ecto 3.0
    • Uses ecto and ecto_sql >= 3.0 deps
    • Updates tests
    • Add required embed_as/1 and equal?/2 callbacks for Ecto.Type modules
  • Will have yet to test EctoEnum with latest MySQL adapter (myxql)

v1.3.2

4 years ago
  • EctoEnum now generates typespecs for dialyzer.
  • Fixed a bug where the create_type/0 with the drop was not being created.

v1.3.1

4 years ago

v1.3.0

4 years ago
  • Refactored internals to make it easier to support useing feature and string-backed enums.
  • Add useing functionality so we can use EctoEnum or EctoEnum.Postgres to define Ecto Enums.
  • Support for string-backed enums!

v1.2.0

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.

v1.1.0

6 years ago

v1.0.2

6 years ago

Fix defenum/2 and defenum/3 not accepting variables

v1.0.1

7 years ago

Updated tests, dependencies, and addressed new compiler warnings

v1.0

7 years ago

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!

v0.4.0

7 years ago
  • 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