Displaying 1 result from an estimated 1 matches for "products_status".
2006 May 19
2
Problems with belongs_to table joins
...int not null auto_increment,
title varchar(100) not null,
product_format_id integer references product_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 :t...