Skip to content

Instantly share code, notes, and snippets.

@stuarthannig
Last active December 20, 2015 23:39
Show Gist options
  • Save stuarthannig/6214426 to your computer and use it in GitHub Desktop.
Save stuarthannig/6214426 to your computer and use it in GitHub Desktop.
When running 'rake test:prepare' from SSH terminal on the test environment that has a Heroku PostgreSQL database, you will be presented with a Permission Denied error. The following is a simple workaround for that issue.
rake db:migrate VERSION=0 RAILS_ENV=test; rake db:migrate RAILS_ENV=test;
# If you do not have RVM v1.11 installed, you may have to use 'bundle exec' infront of your rake commands, like so:
# bundle exec rake db:migrate VERSION=0 RAILS_ENV=test; bundle exec rake db:migrate RAILS_ENV=test;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment