1
0
Fork 0
dokkan-data-rails/app/models/passive_skill.rb

9 lines
228 B
Ruby

class PassiveSkill < ActiveRecord::Base
has_paper_trail
validates :name, presence: true
validates :description, presence: true,
uniqueness: { scope: :name }
default_scope { order(:name) }
end