Rails Start ID à 1000

create_table :orders do |t|
  t.integer  :price
  # other stuff
end

# for Postgres
execute "SELECT setval('orders_id_seq', 1000)"

# and for mysql ...
execute "ALTER TABLE products AUTO_INCREMENT = 1000"
Lioruby