Skip to content

Instantly share code, notes, and snippets.

@barnabyalter
Last active September 28, 2015 20:28
Show Gist options
  • Save barnabyalter/e1e9cd70a1908d39b85f to your computer and use it in GitHub Desktop.
Save barnabyalter/e1e9cd70a1908d39b85f to your computer and use it in GitHub Desktop.
Rollback schema on one branch and then proceed forward on another
~$ git checkout feature/login-integration
~$ RAILS_ENV=staging rake db:migrate VERSION=20141001211059 #Do this on the actual staging environment not your ~$ local environment
~$ git checkout development
~$ RAILS_ENV=staging rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment