Displaying 1 result from an estimated 1 matches for "company_branch_".
Did you mean:
company_branch
2006 Mar 15
1
Through method problems with custom foreign_keys
...acts" table.
I am using a legacy schema so i am forced into using non-standard rails
primary keys. I am using the new through relationship in rails 1.1.
p=Person.find(1)
b=p.company_branches # gives this error:
ActiveRecord::StatementInvalid: OCIError: ORA-00904:
"CONTACTS"."COMPANY_BRANCH_
ID": invalid identifier: SELECT company_branches.* FROM contacts,
company_branch
es WHERE (company_branches.branch_id = contacts.company_branch_id AND
contacts.p
erson_person_id = 1)
Notice that "contacts.company_branch_id" does not exist, it should be
"contacts.com_branch_i...