15 lines
328 B
Ruby
15 lines
328 B
Ruby
# frozen_string_literal: true
|
|
|
|
class WowItem < ApplicationRecord
|
|
extend Mobility
|
|
translates :name
|
|
|
|
belongs_to :wow_item_class
|
|
belongs_to :wow_item_sub_class
|
|
belongs_to :wow_item_inventory_type
|
|
belongs_to :wow_item_quality
|
|
|
|
validates :name, presence: true
|
|
validates :item_id, presence: true, uniqueness: true
|
|
end
|