How to rollback a specific migration?

First of all:

rake db:migrate:status  

Find the migration you need to rollback and copy the specific version.

Then in order to rollback a specific migration use:

rake db:migrate:down VERSION=20170123173841  

There you go! :)

Victor Velazquez

Coder, Musician, Startups, Passionate Dancer & Life Lover. Director of Engineering at MagmaLabs, Co-founder of Web Dev Talks, Co-founder of Voltaire, Co-founder of Paqkit, Ex-co-founder of Zaznova.

Subscribe to The zazvick's blog

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!