On Fri, 2006-07-14 at 00:10 -0700, Joe Van D. wrote:
When I run “rake” using a postgres 8.1 database, I get a bunch of these notices.
NOTICE: CREATE TABLE will create implicit sequence
“categories_id_seq” for serial column “categories.id”
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
“categories_pkey” for table “categories”
How can I avoid those? I take it I need to modify the migrations.
funny, I always considered it a form of being loved.
The message is merely informational since what it is telling you is that
it not only is creating an ‘id’ column in your postgresql table but also
setting an explicit sequence for that table which will automatically
increment the ‘id’ entries. Without this sequence, ActiveRecord could
not manage adding new records to the table without some other form of
There’s no problem, that is the way things are supposed to be