Created
November 6, 2014 18:15
-
-
Save laser/687cd90cb61520fea356 to your computer and use it in GitHub Desktop.
drop / recreate test database script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAILS_ENV=test bundle exec rake db:drop db:create | |
echo '\x \\ DROP EXTENSION postgis CASCADE;' | psql zzz_test | |
echo '\x \\ CREATE EXTENSION postgis;' | psql zzz_test | |
RAILS_ENV=test rake db:schema:load | |
bundle exec rspec spec/queries/listings_query_spec.rb:131 | |
git stash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment