ecto_ranked v0.1.1 EctoRanked
EctoRanked uses a rank column to provides changeset methods for updating ordering an ordering column
Summary
Functions
Updates the given changeset with the appropriate ranking, and updates/ranks the other items in the list as necessary
Functions
Updates the given changeset with the appropriate ranking, and updates/ranks the other items in the list as necessary.
Options
:rank
- the field to store the actual ranking in. Defaults to:rank
:position
- the field to use for positional changes. Defaults to:position
:scope
- the field to scope all ranking to. Defaults tonil
(no scoping).