Order leader skills alphabetically
This commit is contained in:
parent
59384c0b85
commit
8bef784209
1 changed files with 2 additions and 0 deletions
|
@ -3,4 +3,6 @@ class LeaderSkill < ActiveRecord::Base
|
||||||
|
|
||||||
validates :description, presence: true,
|
validates :description, presence: true,
|
||||||
uniqueness: { case_sensitive: false }
|
uniqueness: { case_sensitive: false }
|
||||||
|
|
||||||
|
default_scope { order(:description) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue