add creature and base rp_world
This commit is contained in:
9
app/models/wow_creature_family.rb
Normal file
9
app/models/wow_creature_family.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class WowCreatureFamily < ApplicationRecord
|
||||
extend Mobility
|
||||
translates :name
|
||||
|
||||
has_many :wow_creatures, dependent: :destroy
|
||||
|
||||
validates :name, presence: true
|
||||
validates :creature_family_id, presence: true, uniqueness: true
|
||||
end
|
||||
Reference in New Issue
Block a user