Migrations and primary id


#1

I set up a migration yesterday for the first time and remembered that
Rails
will assign a primary id column on it’s own. No need to put it in to
the
SQL.
The name of the column though is just “id”, is there a way to over ride
the
default if I wanted ?

TIA
Stuart


#2

create_table :table_name, :primary_key => ‘your_PK_name’


#3

Thanks , but leaving Rails calling it just id , any potential problems ?

Stuart