For instance, the docs for deploying a Rails app have us configuring the ./bin/render-build.sh
script as the build command, and this script runs rake db:migrate
which executes the Postgres migration.
If the service is running on more than one host, is the build command run only once per deploy? Otherwise running the migration multiple times could potentially be dangerous.