2009/11/28 Ritvvij <[email protected]>: > Hello > > I want to create a table with ID column but dont want auto increment > used. (columns in table are id and string) I am using mysql. Can you > help me write the create migration?
Why do you not want auto increment? If it is because you want control of an id field for something like a product code or user number then it is probably easier to let Rails use the normal auto increment id field and add another one of your own, product_code or whatever it is, that you can manipulate as you wish without having to go against the Rails conventions. This is more likely to give you a peaceful life. Colin -- 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.

