This project is archived and is in readonly mode.
db:migrate:down does not remove migration version from schema_migrations table
-
Jeremy Kemper
- Milestone set to 2.1.1
-
RaceCondition
Forgot to mention that I have verified this bug with both MySQL 5 and SQLite.
-
Michael Raidel
"rake db:migrate:down" runs "ActiveRecord::Migrator.run(:down,...)" This in turn calls the #run instance method on a new Migrator instance and this method doesn't record its state in the schema_migrations-table. There is even one test which makes it look like this is the wanted behaviour, so I am not completely sure if I am going in the right direction. I have attached a patch which also adds two tests for the up and down-method and removes the test_migrator_run-test which seems to assume this is the right behaviour.
-
Jeremy Kemper
- State changed from new to open
- Assigned user set to Jeremy Kemper
-
Repository
- State changed from open to resolved
(from [7839a83227d0d7cb193f0599afc03829d4643a64]) ActiveRecord::Migrator#run records version-state after migrating. [#369 state:resolved]
