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