migrate to heroku springboot code example
Example 1: how to migrate database to heroku
heroku run rails db:migrate
Example 2: spring heroku change environment
$ heroku config:set SPRING_PROFILES_ACTIVE=tst
heroku run rails db:migrate
$ heroku config:set SPRING_PROFILES_ACTIVE=tst