Typically, you’ll know what migrations need to be run on the production database on deploy. You can check on a production
rake db:migrate:status | grep down, but that requires the server to have been deployed with the migrations
that need to be run. It’s much more convenient to be able to see what migrations in your local project have yet to be
run on the production database.