search for: intcustomerid

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

2006 Apr 07
6
Foreign Key naming convention override
...sid''. In ''tblitems'', the foreign key is called ''txtcustomerid''. I have already set the customers model to override the ''id'' naming convention for the primary key by adding the following to the customers model. set_primary_key(:intcustomerid) How do I tell rails to override the preferred name for the foreign key ''txtcustomerid''? I have tried: set_foreign_key(:intcustomerid) and :foreign_key => "intcustomerid" but neither work. I''m running out of ideas! Thanks, Alana -- Posted via http...