Files
old-ribica/back-office/app/models/item.rb

11 lines
289 B
Ruby
Raw Normal View History

class Item < ActiveRecord::Base
belongs_to :unit
has_many :multi_media_descriptions
2015-01-18 12:34:33 +01:00
belongs_to :sub_category
2015-03-14 06:33:49 +01:00
belongs_to :supplier
validates_presence_of :name, :description, :list_price, :current_input_price, :tags, :unit_id, :code, :sub_category_id, :weight, :supplier_id
end