Displaying 1 result from an estimated 1 matches for "table_b_position".
2006 May 31
0
belongs_to without referencing an id as a foreign key?
Hello everyone,
Here''s my problem for the day: I have three tables that look a little like
the following
table_a
id
table_b
id
position
table_a_id
name
table_c
id
table_a_id
table_b_position
There will be many rows in table_c that have the same table_a_id, and the
same table_b_position. These will all be referencing the same name value in
table_b. The row in table_b may or may not exist, and table_b_position is a
meaningful field with or without a corresponding row in table_b, so t...