Categories
Programming

rake db:rollback does nothing, no rollback is performed and no error message is shown

I just discovered something relatively simply that eluded me since the very start of my career in Rails. You’re working on several branches, migrating between them sometimes having to run a db migration. Sometimes you or a colleague writes a non-forward compatible migration, making the code on master (for example) unable to be run against a later migration that happened in a different branch.