I am trying to use a free heroku postgres instance to use as my test database, but I am running into a problem as the first step seems to be for minitest to drop the database, which heroku postgres doesn't allow instead it allows to purge the database I think.
action@clinio2-13639:~/workspace/clinio(master*)$ rake
rake aborted!
FATAL: permission denied for database "postgres"
DETAIL: User does not have CONNECT privilege.
......
Tasks: TOP => db:test:load => db:test:purge
(See full trace by running task with --trace)
not sure how to get past this error. And my dev environment I dont have root privlidges so I cant set up a local postgres instance which would obviously be ideal. Any help would be much appreciated!
Unfortunately, I think you just really need root privileges in a development environment. Heroku is pretty locked down, so it's not ideal for testing. Here are some options: