search for: photo2_id

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

Did you mean: photo1_id
2006 Aug 30
1
Single Table Inheritance with self-referential join
...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 objects: class Stereo < ActiveRecord::Base end class Photo < Stereo end class Preview < Stereo end class Final < Stereo end So the questions are...