database_cleaner-active_record
database_cleaner-active_record copied to clipboard
Strategies for cleaning databases using ActiveRecord. Can be used to ensure a clean state for testing.
With HEAD, receiving `ERROR: currval of sequence ...` given currval isn't defined until nextval is invoked 'per session'. https://www.postgresql.org/docs/current/functions-sequence.html Therefore looking up what's been persisted whether it was atomically incremented...
The `schema_migration` method was moved in https://github.com/rails/rails/pull/51162 Red tests are due to https://github.com/DatabaseCleaner/database_cleaner-active_record/pull/93
Context: https://github.com/rails/rails/pull/51349 Ensures that applications using `config.active_record.permanent_connection_checkout = :disallowed` are supported from Rails 7.2 onwards. There's one more usage of `.connection` but that seems to be getting removed in #101.
Hello - thanks for putting together `database_cleaner`! I've been using the gem for a while and I know maintenance takes effort, so appreciate those who contribute to this project. I'm...
With the recent change on https://github.com/DatabaseCleaner/database_cleaner-active_record/pull/58 you started using RESTRICT But it breaks our tests right now. You should only use RESTRICT if the KEEP_TABLES option is defined. Otherwise, CASCADE...
fixes #97 ### Notes on CI failures Tests for Rails 7.1 do not pass even at [commit aafa5b2](https://github.com/DatabaseCleaner/database_cleaner-active_record/actions/runs/6972687842/job/18975333189)
(I will post my suggestion next to this report.) ## Summary When we add another database to a cleaner by specifying a symbol (connection name) with the `:transaction` strategy, it...
Note: I will make a pull request that follows this issue. ## Summary When we use DatabaseCleaner for a multi-database environment, the connection for "main" models (i.e., models inheriting the...
I want to be able to display progress of truncation using ruby-progressbar. I don't consider the progress bar itself to be a concern of this gem, so all I've done...