Heroku’s best argument for a database-backed app is the moment between “the build passed” and “customers are using it.” The release phase gives a team a place to run a migration and a clear consequence if that command fails. For an application that changes its schema every week, that can be worth more than shaving a minute off the build.
There is also a purchasing question to settle early. In February 2026, Heroku announced a focus on sustaining engineering and said it would stop offering new Enterprise Account contracts. It continued publishing platform and data-service updates later in the year. An existing team and a new buyer with enterprise procurement requirements have different decisions to make here. Confirm the account and support terms you need before investing in a migration. Heroku’s February announcement · October product update
What a failed migration looks like
Take a Django app that adds a customer’s preferred invoice language. The release task applies the schema change. The web process serves requests and a worker sends invoices. On Heroku, a nonzero exit from the release command prevents the new release from reaching the app’s dyno formation. A build can therefore succeed while the previously deployed application continues serving customers. The release log is the first place to look. Heroku release phase
There is an important wrinkle. A release task can change a database before it fails. And releases can be triggered by events other than a code push, including a rollback. Treat the migration as something you may need to retry. Running a one-off backfill that emails every customer in the release phase would give an operator an unpleasant choice after a partial failure.
We checked that distinction on a disposable local PostgreSQL 16 database. A script added a nullable invoice column and then deliberately tried to insert a duplicate primary key. With psql’s default autocommit and stop-on-error enabled, the script failed and the new column was still present. Wrapping the same two statements in a transaction left the column absent after the failure. This is database behavior you can verify before running a migration on Heroku.
Rehearse the change in both directions
For the invoice example, a release sequence might look like this:
- Add a nullable
invoice_languagecolumn. Keep existing web and worker code functioning while the new column is empty. - Deploy code that understands both an unset value and the new value. Backfill existing customers in bounded batches, with a record of progress.
- Once old workers are gone and the backfill has been checked, enforce the final constraint in a later release.
Heroku rollback creates a new release using the selected build and configuration. Database contents and external side effects have their own history. A previous worker may come back and read a record written five minutes ago by the newer application. Give that worker a realistic record during rehearsal. If it can still send the invoice correctly, you have learned something a successful boot cannot show. What Heroku rollback restores
Budget for the web process and the worker
Heroku lists a Basic dyno at $7 per month. A full-month Basic web dyno and Basic worker make a $14 compute example, before a database or other add-ons. There is a meaningful limit behind that number. Eco and Basic allow only one dyno per process type. If the invoice queue grows enough to need two copies of the same worker, recalculate using an eligible tier. Increasing web capacity alone will do little for a slow invoice queue. Heroku pricing · Dyno formation limits
Heroku deserves a place on a shortlist when its release model fits how the team already builds and operates software. For a purchase decision, ask one engineer to explain the path from a failed migration to a working invoice and one buyer to confirm the account terms. Those are the two parts of this review that a sample app cannot settle for you.