search for: other_field

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

Did you mean: otherfield
2006 Apr 21
2
me.defeated!
...from a legacy database. The trick is, that the database really wasn''t created with RoR convention over configuration in mind. The trick is that every table has compound primary keys, and no foreign key references. So, for instance: Table parent field id1 PK field id2 PK field other_fields Table child field id1 PK field id2 PK field other_fields Are the table definitions (informally anyway). Now, the way that this particular DB works is that to get the child for any parent, you just find the same id1 and id2. So the compound primary key is sort of an informal kind of fo...