How do i use ActiveRecord on existing DB with multiple columns as primary key and no ID column? I had to write extensions/hacks on set_primary_key, update and delete methods. But im not sure if it'll work on future versions. Is there a way to make ActiveRecord work in such cases without hacks?
views:
286answers:
1
+1
A:
ActiveRecord doesn't support composite primary keys. Here is a library that purports to add support though.
Dave Ray
2009-01-04 18:28:45