How to specify :primary_key starting value in rails schema migration?
Posted
by RewbieNewbie
on Stack Overflow
See other posts from Stack Overflow
or by RewbieNewbie
Published on 2010-02-26T11:40:19Z
Indexed on
2010/06/01
8:03 UTC
Read the original article
Hit count: 182
ruby-on-rails
I have a postgres table and a schema that creates a primary id (sequence) that auto increments by 1. How do I specify the starting value? I am happy with the increment value. Here is my schema migration:
create_table "ServiceProvider", {:primary_key => :ID} do |t|
t.integer "ID", :null => false
end
Thank you
© Stack Overflow or respective owner