Database Reference
In-Depth Information
Checking the rollback feature
The first step for performing rollback is to check whether this feature is available in your
plan. Currently, the rollback functionality is available only in standard, premium, and enter-
prise plans.
You can check whether the rollback is enabled in two different ways. The first one is
through the Heroku client with the heroku pg:info command:
$ heroku pg:info --app your-app-name
=== HEROKU_POSTGRESQL_CHARCOAL_URL (DATABASE_URL)
...
Rollback: earliest from 2014-10-04 22:56 UTC
...
The preceding command displays the rollback information; this tells you whether the fea-
ture is available for your database. If the line displays a date, as the one in the preceding
command, this means that the feature is available. If the line displays "Unsupported", this
means that it is unavailable, as shown here:
=== HEROKU_POSTGRESQL_ORANGE_URL (DATABASE_URL)
...
Rollback: Unsupported
...
The second way to check whether rollback is active is through the Heroku Dashboard. Just
visit https://postgres.heroku.com , select your database, and take a look at the Statistics sec-
tion to check whether the rollback feature is enabled, as shown in the following image:
Search WWH ::




Custom Search