When I tried to reset the DB of the app on heroku created by Rails, I did `` `heroku run rake db: reset```, but an error occurred and I could not reset it.
In the error statement displayed in the terminal, it was written as follows.
rake aborted! ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database. If you are sure you want to continue, run the same command with the environment variable: DISABLE_DATABASE_ENVIRONMENT_CHECK=1
If you want to continue, run the same command with the environment variables. DISABLE_DATABASE_ENVIRONMENT_CHECK = 1``` Because it is written
heroku run rake db:reset DISABLE_DATABASE_ENVIRONMENT_CHECK=1
I wrote it like this and executed it again, and the DB was successfully reset.