How do I toggle auto-provisioning of a database on first deployment?
You want to toggle auto-provisioning of a Heroku Postgres database on the first deployment of your apps and are unsure how to enable this behavior.
If you created your account before May 15, 2023, your Ruby, Python Django, Java and Scala apps automatically create a PostgreSQL database if it has a Postgres database adapter dependency. This provisioning happens only on the first deployment.
Apps belonging to accounts created after May 15, 2023 don't automatically provision a database on first deployment.
You can enable or disable this auto-provisioning behavior on your account.