initial rebuild from v1
This commit is contained in:
10
app/models/wow_realm.rb
Normal file
10
app/models/wow_realm.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class WowRealm < ApplicationRecord
|
||||
extend Mobility
|
||||
translates :name, :category, :realm_type
|
||||
|
||||
has_many :wow_characters, dependent: :nullify
|
||||
|
||||
validates :name, presence: true
|
||||
validates :slug, presence: true
|
||||
validates :realm_id, presence: true, uniqueness: true
|
||||
end
|
||||
Reference in New Issue
Block a user