search for: cost_price

Displaying 1 result from an estimated 1 matches for "cost_price".

2006 May 19
2
Problems with belongs_to table joins
...roduct_formats(id), description text not null, image_url varchar(200) not null, products_quantity int(11) not null, products_status enum(''0'',''1'') not null, available_from date, cost_price decimal(10,2) not null, retail_price decimal(10,2) not null, primary key(id) ); class Product < ActiveRecord::Base validates_presence_of :title validates_numericality_of :retail_price, :cost_price has_and_belongs_to_many :artists has_and_belongs_to_many :la...