search for: cmpny_company_id

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

2006 Mar 15
1
Through method problems with custom foreign_keys
...=>"Contact" has_many :company_branches, :through=>:contacts, :foreign_key=>"com_branch_id" end class CompanyBranch < ActiveRecord::Base set_primary_key "branch_id" belongs_to :company, :foreign_key=>"cmpny_company_id", :class_name=>"Company" has_many :contacts, :foreign_key=>"com_branch_id", :class_name=>"Contact" end class Contact < ActiveRecord::Base set_primary_key "contact_id" belongs_to :company_branch...