search for: authorized_by_id

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

2006 Aug 30
1
Single Table Inheritance with self-referential join
....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 objects: class Stereo < ActiveRecord::Base end class Photo < Stereo end class Preview < St...