Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remigrate test database to create a clean schema.rb. For use during rebasing or when you have a dirty dev DB.
set -v
git show integration:db/schema.rb > db/schema.rb
RAILS_ENV=test rake db:drop
RAILS_ENV=test rake db:create
RAILS_ENV=test rake db:schema:load
RAILS_ENV=test rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.