DatabaseCleaner / database_cleaner-active_record

Strategies for cleaning databases using ActiveRecord. Can be used to ensure a clean state for testing.
MIT License
64 stars 63 forks source link

Adds rails-7-1 support #78

Closed eis-ioki closed 1 year ago

eis-ioki commented 1 year ago

In Rails 7.1 ::ActiveRecord::SchemaMigration.table_name is deprecated

petergoldstein commented 1 year ago

Would love to see this merged and released in a new version. Perhaps also with Ruby 3.2 added to the CI matrix.

petergoldstein commented 1 year ago

@eis-ioki You're going to want to add a Rails 7.1 gemfile and exclude the combination of Rails 7.1 with all Rubies earlier than Ruby 3.0. Plus you'll need to rebase to pick up the Ruby 3.2 addition to CI.

eikes commented 1 year ago

Finally got the whole matrix to pass which was difficult because of the different rubygems dependencies:

https://github.com/eikes/database_cleaner-active_record/actions/runs/4194214954

petergoldstein commented 1 year ago

@etagwerker Is there going to be a gem release that includes this change published in the near future? That would be very helpful.

etagwerker commented 1 year ago

@petergoldstein https://mastodon.social/@etagwerker/109880784622263889