I’m using rails 2.3.4
When I execute rake db:test:prepare the id field created is not a primary key and auto-incremented.
When I look at the development db no problem with the primary keys.
Using MySQL.
Edit: It looks like my schema.rb file was changed :id => false should be true. What generates this file? DB Migrations?
[EDIT] What is the actual mechanics for generating the schema.rb file?
When you perform rake tasks, the tasks are executed to the default environment if no environment is specified.
You probably have different schema versions between your test and development databases.
If I’m not wrong (as I remember right now)