Changing the default ActiveRecord id from 0 to 1000000
Posted
by jrk
on Stack Overflow
See other posts from Stack Overflow
or by jrk
Published on 2010-03-11T11:19:18Z
Indexed on
2010/03/12
23:07 UTC
Read the original article
Hit count: 140
Hello there,
I'd like to change the minimum for the id of created objects from 1 to 1000. So when I create in rails my first model object it gets the ID 1000 and not 1.
Is there a way to set this in the schema/migration files?
© Stack Overflow or respective owner