heroku upload database only 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
$ heroku pg:backups:capture
$ heroku pg:backups:download
heroku run rails db:migrate