Re: [Rails-core] Composite Primary Keys

2012-06-15 Thread Luís Ferreira
You are right, I can probably achieve my goals with a unique index and a validates_uniqueness_of with :scope. Thanks for the tip On Jun 14, 2012, at 10:05 PM, Michael Koziarski wrote: On Friday, 15 June 2012 at 4:54 AM, Luís Ferreira wrote: Hi, Is there any particular reason why AR does

[Rails-core] Composite Primary Keys

2012-06-14 Thread Luís Ferreira
Hi, Is there any particular reason why AR does not support composite primary keys? This looks like a pretty nice feature to add. Regards, Luís Ferreira -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core group. To post to this group, send email

Re: [Rails-core] Composite Primary Keys

2012-06-14 Thread Michael Koziarski
On Friday, 15 June 2012 at 4:54 AM, Luís Ferreira wrote: Hi, Is there any particular reason why AR does not support composite primary keys? This looks like a pretty nice feature to add. Because outside of people with 'legacy schemas' there's not really a large number of compelling use