Linked by Thom Holwerda on Fri 7th Dec 2007 19:44 UTC, submitted by Bill Davenport
General Development Ruby on Rails 2.0 has been released. "Rails 2.0 is finally finished after about a year in the making. This is a fantastic release that's absolutely stuffed with great new features, loads of fixes, and an incredible amount of polish. We've even taken a fair bit of cruft out to make the whole package more coherent and lean." On Zenbits, they give tips on how to install 2.0.
Permalink for comment 289447
To read all comments associated with this story, please click here.
Question: Compound primary keys in Rails?
by g2devi on Fri 7th Dec 2007 22:14 UTC
g2devi
Member since:
2005-07-09

Is it possible to have compound primary keys in Rails 2.0? I remember reading that the Rails developers explicitly rejected compound primary keys in Rails 1.0 because they thought there was no legitimate reason to have them (in their eyes) and that any legacy system that used them should be rewritten "the right way".

It's possible to create a Rails-type system with compound primary keys and user generated sequences (see http://framework.zend.com/manual/en/zend.db.table.html ) which might not have been obvious at the time the Rail developers made that statement was made (since Rails was a pioneer). So I'm wondering if they've changed their minds and included this functionality in 2.0?