|
[Rails] Re: legacy database, primary key compound with two fields: msg#03276RubyonRailsTalk
Craig White wrote: > I am trying to define a model for a legacy database and the primary key > is the combination of two fields, 'branchcode' and 'debtorno' [...] If you can't add a surrogate key, try the composite_primary_keys plugin. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@xxxxxxxxxx -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
| News | Mail Home | sitemap | FAQ | advertise |