add WowSpell
This commit is contained in:
7
app/models/wow_spell.rb
Normal file
7
app/models/wow_spell.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class WowSpell < ApplicationRecord
|
||||
extend Mobility
|
||||
translates :name, :description
|
||||
|
||||
validates :name, presence: true
|
||||
validates :spell_id, presence: true, uniqueness: true
|
||||
end
|
||||
Reference in New Issue
Block a user