I needed an id field in my rails migration that auto-increments from 0 and not 1.Any idea?
Thanks & Cheers !
I needed an id field in my rails migration that auto-increments from 0 and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found it in mysql Advance option “The initial AUTO_INCREMENT” value for the Table.
you can set there but i don’t know whether you can set that using Rails Migration or not.