search for: prikeys

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

Did you mean: privkeys
2006 Oct 09
2
Multi-column primary key in joining tables
Folks, What is the convention for primary key fields in joining tables in RoR? I have a model representing a joining table, and I can''t seem to prevent ActiveRecord''s find method from looking for an id column. I don''t have an auto-incremented field in my table (happy to add one if that is the convention), and therefore my primary key is the combination of the 2 foreign