Skip to content

Instantly share code, notes, and snippets.

@laser
Created November 6, 2014 18:15
Show Gist options
  • Save laser/687cd90cb61520fea356 to your computer and use it in GitHub Desktop.
Save laser/687cd90cb61520fea356 to your computer and use it in GitHub Desktop.
drop / recreate test database script
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