heroku cli use postgresql code example
Example 1: how to push database to heroku
heroku run rails db:migrate
Example 2: how to find my postgres hostname heorku
heroku pg:credentials:url
heroku run rails db:migrate
heroku pg:credentials:url