rake db:migrate not saving latest version #


I'm having some trouble migrating.

From a fresh db, rake db:migrate runs successfully, with no errors. The tasks in the latest migration are performed with no problem. However, the latest version # is not saved in the schema_migrations table. All other version numbers are.

Subsequent rake db:migrate cause errors because columns/tables already exist.

I've tried changing version numbers on the latest migration file and even commenting out all of the logic, with no luck.

Has anyone seen this before? Any ideas?

Many thanks.