I\'m trying to import my production Heroku database into my development machine.
My local db is PostgreSQL.
First, I\'m exporting the dump from Heroku to my
Create a backup copy of your database:
$ heroku pg:backups capture DATABASE_NAME
Download the copy from Heroku (to your local machine) using curl:
$ curl -o latest.dump `heroku pg:backups public-url`
Load it*:
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U YOUR_USERNAME -d DATABASE_NAME latest.dump
config/database.yml file.That's it!