run migrate on heroku bash code example Example: how to migrate database to heroku heroku run rails db:migrate