diff --git a/app/models/super_attack.rb b/app/models/super_attack.rb index 332c480..ad32ec1 100644 --- a/app/models/super_attack.rb +++ b/app/models/super_attack.rb @@ -2,7 +2,8 @@ class SuperAttack < ActiveRecord::Base has_paper_trail validates :name, presence: true - validates :description, presence: true + validates :description, presence: true, + uniqueness: { scope: :name } default_scope { order(:name) }