Files
old-ribica/back-office/app/models/item.rb
2015-03-14 06:33:49 +01:00

11 lines
289 B
Ruby

class Item < ActiveRecord::Base
belongs_to :unit
has_many :multi_media_descriptions
belongs_to :sub_category
belongs_to :supplier
validates_presence_of :name, :description, :list_price, :current_input_price, :tags, :unit_id, :code, :sub_category_id, :weight, :supplier_id
end