ecto_fsm v0.2.0 Ecto.FSM.Schema View Source
Provides status/{1,2}
macro for adding status field in an Ecto.Schema
.
Link to this section Summary
Link to this section Functions
Link to this macro
status(handler, opts \\ []) View Source (macro)
Generates status
field from an Ecto.FSM
module.
Options
:name
- the name of the field for status:type
- module name for the enumeration type (useEctoEnum
):default
- default value for status field