heroku psql code example
Example 1: heroku download database
$ heroku pg:backups:capture
$ heroku pg:backups:download
Example 2: how to push database to heroku
heroku run rails db:migrate
Example 3: how to find my postgres hostname heorku
heroku pg:credentials:url