EctoEnum v1.4.0 EctoEnum.Postgres View Source
This module can be used to create an Ecto Enum.
Usage:
defmodule NewType do
use EctoEnum.Postgres, type: :new_type, enums: [:ready, :set, :go], schema: "this_is_optional"
end
Note that :type and :enums are required, while :schema is optional.
This module is meant to be used when you want to use User-defined Types in PostgreSQL.
Link to this section Summary
Link to this section Functions
Link to this function