add WowSpell

This commit is contained in:
2021-05-30 14:32:34 +02:00
parent df26a9ca6f
commit d0e5824d40
7 changed files with 79 additions and 5 deletions

7
app/models/wow_spell.rb Normal file
View 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