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
on 2006-06-12 13:23
on 2006-06-12 13:33
create_table :table_name, :primary_key => 'your_PK_name'
on 2006-06-12 13:46
Thanks , but leaving Rails calling it just id , any potential problems ? Stuart