access db heroku cli code example
Example 1: connect to db heroku
heroku pg:psql -f schema.sql -a HEROKU_APP_NAME
Example 2: how to push database to heroku
heroku run rails db:migrate
heroku pg:psql -f schema.sql -a HEROKU_APP_NAME
heroku run rails db:migrate