database_cleaner-active_record icon indicating copy to clipboard operation
database_cleaner-active_record copied to clipboard

Strategies for cleaning databases using ActiveRecord. Can be used to ensure a clean state for testing.

Results 55 database_cleaner-active_record issues
Sort by recently updated
recently updated
newest added

Hello, I am working in an application that has a pretty large data model that is initially cleaned up with as of today 141 tables being truncated. Each TRUNCATE taking...

Hello, Because I had a similar use case as described in https://github.com/DatabaseCleaner/database_cleaner-active_record/issues/31, I've developed a solution for running UI tests with seeded data while only cleaning records created during testing....

v2.2.2, mysql2 0.5.4, Ruby 2.7, Rails 5. When I downgrade to 1.8 it works. Maybe a Rails version check is needed in dependency list for 2.X? ``` NoMethodError: undefined method...

On v2.2.0 of this gem, this config worked fine in my app: ```ruby RSpec.configure do |config| # ... DatabaseCleaner.strategy = :truncation end ``` After upgrading to v2.2.1, my strategy was...

Currently, we test against 6.1, 7.0, 7.1, 7.2, and head, but head is currently 8.1.