Merge branch 'atomaka/bugfix/unique-leader-skill' into 'development'
Require leader skills to be unique See merge request !4
This commit is contained in:
commit
cfac2aaff7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue