search for: tbl_codemgmt_pool

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

2006 Jul 25
2
join in legacy DB?
...;'t follow any RAILS standards. how do I define the join in the model when all three tables have wacky names? class Machine < ActiveRecord::Base set_table_name "tbl_CodeMgmt_Host" set_primary_key "Id" end class Pool < ActiveRecord::Base set_table_name "tbl_CodeMgmt_Pool" set_primary_key "Id" end the join table is tbl_CodeMgmt_PoolHost with columns CodeMgmtPoolId CodeMgmtHostId any clues? thanks -zaq -- Posted via http://www.ruby-forum.com/.