From: tsuraan Date: 2005-08-27T06:29:22+09:00 Subject: Re: probably a stupid rails question > 1) It would be better to use the Rails mailing list for your Rails > questions. [1] Yeah, I just haven't subscribed yet. I guess I should :) > 2) you need to define a sequence and set the default value of that > column to the nextval of the sequence. This is in PosgreSQL > accomplished by using the 'serial' type when creating the table. > > create table foo (id serial primary key, ...); > > You can also go back and do it manually by creating a sequence and > altering the table. This is basically equivalent to an > 'autoincrement' column in MySQL (not exactly, but similar principle). Cool, thanks!