search for: txtcustomerid

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

2006 Apr 07
6
Foreign Key naming convention override
...database and have to keep all table and field names as they are. ''tblcustomers'' and ''tblitems'' are linked by the ''tblcustomers'' id field ''tblcustomersid''. 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 ''...