1
0
Fork 0

Require leader skills to be unique

This commit is contained in:
Andrew Tomaka 2015-10-23 10:57:22 -04:00
parent 83831df27f
commit 860f58b974

View file

@ -1,5 +1,6 @@
class LeaderSkill < ActiveRecord::Base class LeaderSkill < ActiveRecord::Base
has_paper_trail has_paper_trail
validates :description, presence: true validates :description, presence: true,
uniqueness: { case_sensitive: false }
end end