Displaying 1 result from an estimated 1 matches for "tab1_id".
Did you mean:
max1_id
2005 Dec 19
0
has_one mapping with arbitrary right and left hand side keys
I have two tables:
table_1:
tab1_id,
other_id
table_2:
id,
tab2_id,
something_else
I would like to specify a has_one mapping from table_1 to table_2 but
specifying that the join is based on (table_2.tab2_id =
table_1.other_id).
I am half way there with:
class Table1 < ActiveRecord::Base
set_table_name "table_1"
s...