database_cleaner
database_cleaner copied to clipboard
Cleaning of dev DB
I load DB cleaner only in test env (while running my tests). I can see that ENV["RAILS_ENV"]=test during my test run.
However, dev DB is cleaned every time I run my tests.
Is this a bug? What is the proper way to prevent this?
Ruby 3.4.1 Rails 8.0.2
I saw these issues, but did not get what is the solution https://github.com/DatabaseCleaner/database_cleaner/issues/704 https://github.com/DatabaseCleaner/database_cleaner/issues/687