heroku run new database code example Example 1: how to push database to heroku heroku run rails db:migrate Example 2: create database heroku ur cool, a database