Require leader skills to be unique
This commit is contained in:
parent
83831df27f
commit
860f58b974
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
class LeaderSkill < ActiveRecord::Base
|
||||
has_paper_trail
|
||||
|
||||
validates :description, presence: true
|
||||
validates :description, presence: true,
|
||||
uniqueness: { case_sensitive: false }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue