On Tue, May 26, 2009 at 6:11 PM, pepe <[email protected]> wrote: > > Sorry for the re-post. Nobody has even answered "no, can't do". > > I have an ID column in a legacy table of type STRING and could contain > not unique values. Is there a way of disabling the convention of ID > being the primary key? How can I assign the values I need to the ID > column without using SQL, which I already know would work? > > ruby: 1.8.6 > rails: 2.3.2 > Database: Oracle 10g > > Thanks. > > Pepe
Yup, can do :-) See: http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002232 Technically a primary key is not a primary key if it can contain duplicate (not unique) values Andrew Timberlake http://ramblingsonrails.com http://MyMvelope.com - The SIMPLE way to manage your savings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

