search for: date_taken

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

Did you mean: data_token
2006 Aug 30
1
Single Table Inheritance with self-referential join
...lf-referential join modeled like this: create_table :stereos, :force => true do |t| t.column :type, :string # common attributes t.column :photo_name, :string t.column :created_at, :datetime t.column :updated_at, :datetime t.column :order_id, :integer # attributes for type=Photo t.column :date_taken, :datetime t.column :pair_id, :integer # attributes for type=Preview t.column :authorized_by_id, :integer t.column :photo1_id, :integer t.column :photo2_id, :integer # attributes for type=Final t.column :photo1_id, :integer t.column :photo2_id, :integer end Now for the hierarchy of model objec...
2006 Jan 21
2
Testing ActiveRecord associations
How do I write a test which proves something like "Post :has_many Comments" and "Comment :belongs_to Post"? It doesn''t seem to be covered in "A Guide to Testing the Rails" on manuals.rubyonrails.com. Cheers, Robert. -- Posted via http://www.ruby-forum.com/.