search for: join_table_nam

Displaying 2 results from an estimated 2 matches for "join_table_nam".

Did you mean: join_table_name
2006 Aug 11
0
habtm in a standalone ruby script broken?
...fine, until i introduce a table_prefix with ActiveRecord::Base.table_name_prefix = "devel_" >From the database log i see that each tablename is correctly prefixed with _devel, execept the join_table host_downtimes_host_scheduled_downtimes I included a printf stament in Associations::join_table_name and saw that table_name_prefix was an empty string. If i comment out the require statements and write the class definitions directly in the standalone ruby script, it works perfectly. So does the rails application. May i beg for help? Greetings from Munich, Gerhard -- Posted via http://www...
2006 Jul 25
2
join in legacy DB?
I''ve got a problem with some tables that don''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