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.
Hi, This is probably not the repository for this issue, but putting it here incase someone else stumbles across it. Feel free to close it. We are using DatabaseCleaner with...
I have a Rails app that uses database_cleaner for redis and active_record, my Gemfile contains the two gems ```ruby group :test do ... gem 'database_cleaner-active_record' gem 'database_cleaner-redis' ... end ```...
This might be a rare use case, but I have an app that uses two databases. Here's a snippet from my `database.yml` file: ```yaml test: primary:
Hi there, This PR adds configuration to make it easier to quickly test the library using the latest Ruby, Rails, Postgres, and MySQL versions.
Since Rails 6.1, it is possible for a model to connect to multiple databases. A minimal example of such application is: ```ruby class ApplicationRecord < ActiveRecord::Base connects_to shard: { defaul:...
Replaces https://github.com/DatabaseCleaner/database_cleaner-active_record/pull/99
…ve_record By providing a 'changelog_uri' in the metadata of the gemspec a 'Changelog' link will be shown on https://rubygems.org/gems/database_cleaner-active_record which makes it quick and easy for someone to check on...
This PR fixes #62
This is largely the hard work of @thegeorgous in #99, alongside the initiative of @nnishimura in #115 to rebase. I've added a couple of tests and ensured the argument is...