Mk 27 wrote: > If I am going to build a sql database for use in rails (rather than > building it in rails), is there anything I need to know beyond using an > id column in every table? Does the id need to be the "primary key"?
By convention, rails would look for an id as a primary key for all tables. Also, if you use rails migrations to generate the tables, you can say - create_table(:table_name, :id => false) if you don't want id. This might be required in case your table is from a legacy system. Thanks -- 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 [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 -~----------~----~----~----~------~----~------~--~---

