1
0
Fork 0

Merge branch 'atomaka/bugfix/unique-leader-skill' into 'development'

Require leader skills to be unique



See merge request !4
This commit is contained in:
Andrew Tomaka 2015-10-23 11:06:22 -04:00
commit cfac2aaff7

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