Occasionally I need to do development stuff things that are potentially destructive.
The ResetDatabase action will blow away the database, which I need to do for tests and when I am making big changes. But what I absolutely does not want is to have in production.
My method is to require three different things to be true to enable this:
- You must issue a local request (so you are physically on the machine where the system is sitting).
- You are logged on as a user and as an administrator (that is the superAdmin part).
- You are running on a debug build.
Hopefully, I won’t blow the production database.