search for: quote_sheet

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

Did you mean: quotesheet
2006 Jan 13
4
Single Table Inheritance (this is my 3rd post :( )
...pes: class Company < ActiveRecord::Base end class Vendor < Company end class Customer < Company end class Agent < Company end Now I have a active record Association class QuoteSheet < ActiveRecord::Base belongs_to :customer has_many :vendors has_one :Agent end Now in the table quote_sheets should I use vendor_id, customer_id, agent_id or just company_id since all of them are in 1 table called companies. I have read agile wweb development with rail, and no where it says about relationship like this. Thanks with best regards, Vikrant