Ecto Enumerize v0.1.1 EctoEnumerize View Source

Provides EctoEnumerize.defenum/2 macro for defining an Enum Ecto type.

Link to this section Summary

Functions

Defines a custom Enum Ecto.Type.

Link to this section Functions

Link to this macro

defenum(module, enum) View Source (macro)
defenum(module(), [{:key, integer()}]) :: Macro.t()

Defines a custom Enum Ecto.Type.