search for: available_from

Displaying 2 results from an estimated 2 matches for "available_from".

2006 May 19
2
Problems with belongs_to table joins
...t_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 :title validates_numericality_of :retail_price, :cost_price has_and_belongs_to_many :art...
2006 Feb 07
0
complicated search/model question
...obs has_many :availabilities job.rb belongs_to :contractor availability.rb belongs_to :contactor create_table "availabilities", :force => true do |t| t.column "contractor_id", :integer t.column "day", :integer # 0-6 to match ruby wday t.column "available_from", :datetime # could be just a time field but rails doesn''t seam to play nice with time objects t.column "available_to", :datetime # could be just a time field but rails doesn''t seam to play nice with time objects t.column "start_date", :date # used...