How do I get ActiveRecord to work with tables with multiple columns as primary keys?
How can I use ActiveRecord on an existing DB with multiple columns as primary key and no identity column? I had to write extensions / hacks on the set_primary_key, update and delete methods. But I'm not sure if it will work in future versions. Is there a way to make ActiveRecord work in such cases without hacks?
0
source to share
1 answer
ActiveRecord does not support composite primary keys. Here's a library that tries to add support though.
+1
source to share