database_cleaner icon indicating copy to clipboard operation
database_cleaner copied to clipboard

Cleaning of dev DB

Open dmitrytrager opened this issue 6 months ago • 0 comments

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

dmitrytrager avatar Jul 22 '25 14:07 dmitrytrager