thisismydesign / autowow

Set of commands to [auto]mate [w]ay [o]f [w]orking
MIT License
4 stars 0 forks source link

Rails migration retry test functionality #23

Closed thisismydesign closed 2 years ago

thisismydesign commented 5 years ago

Something like this:

git stash
git checkout master
DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rake db:migrate:reset db:seed # or do whatever db:drop db:setup?
git checkout <branch>
git stash pop
rake db:migrate