Rails 4.0.1 on Heroku, can't create database
I would first try
heroku restartheroku rake db:migrate
If that doesn't work, then try.
heroku pg:reset DATABASE_URL #Literally type in heroku pg:reset DATABASE_URLheroku rake db:migrate
I should've read the stack trace more closely. My factories.rb was creating user objects as attributes for other factories. Wrapping them in a block fixed it:
Run
heroku pg:reset DATABASE_URL
and you are done.