diff --git a/app/models/passive_skill.rb b/app/models/passive_skill.rb index 6eebdbc..835e035 100644 --- a/app/models/passive_skill.rb +++ b/app/models/passive_skill.rb @@ -2,7 +2,8 @@ class PassiveSkill < ActiveRecord::Base has_paper_trail validates :name, presence: true - validates :description, presence: true + validates :description, presence: true, + uniqueness: { scope: :name } default_scope { order(:name) } end