This project is archived and is in readonly mode.
rake db:migrate VERSION=0 applies migration
-
Rishav Rastogi
- Tag changed from 2.3.2, db.migrate, rake to db.migrate, rake
Not reproducable. Can you be more specific please. ?
Thanks -
Rishav Rastogi
- Tag changed from db.migrate, rake to 2.3.2, db.migrate, rake
-
Ryan Bigg
Could you please provide an example app so that we can test this behaviour? Thanks.
-
kates
I am experiencing this also in 2.3.5. Here's how to reproduce.
$ rails demo $ cd rails $ script/generate model user login:string password:string $ rake db:migrate == CreateUsers: migrating ==================================================== -- create_table(:users) -> 0.0021s == CreateUsers: migrated (0.0022s) ===========================================$ rake db:migrate VERSION=0 == CreateUsers: reverting ==================================================== -- drop_table(:users) -> 0.0007s == CreateUsers: reverted (0.0007s) ===========================================$ rake db:migrate VERSION=0 == CreateUsers: migrating ==================================================== -- create_table(:users) -> 0.0015s == CreateUsers: migrated (0.0016s) ===========================================including a patch.
-
Neeraj Singh
- Tag changed from 2.3.2, db.migrate, rake to 2.3.2, db.migrate, patch, rake
Attached is a patch with test. Original code fix is also included.
-
Neeraj Singh
Last one had a typo for "target".
Attaching a new patch with test and code fix.
-
Ryan Bigg
- State changed from incomplete to open
-
José Valim
- State changed from open to resolved
