mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Add APP_ENV
This commit is contained in:
parent
12c904161a
commit
9bc66d6c7e
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ After copying and pasting code to do this several times I decided to package it
|
||||||
|
|
||||||
DatabaseCleaner comes with safeguards against:
|
DatabaseCleaner comes with safeguards against:
|
||||||
|
|
||||||
* Running in production (checking for `ENV`, `RACK_ENV`, and `RAILS_ENV`)
|
* Running in production (checking for `ENV`, `APP_ENV`, `RACK_ENV`, and `RAILS_ENV`)
|
||||||
* Running against a remote database (checking for a `DATABASE_URL` that does not include `localhost`, `.local` or `127.0.0.1`)
|
* Running against a remote database (checking for a `DATABASE_URL` that does not include `localhost`, `.local` or `127.0.0.1`)
|
||||||
|
|
||||||
Both safeguards can be disabled separately as follows.
|
Both safeguards can be disabled separately as follows.
|
||||||
|
|
Loading…
Reference in a new issue