Skip to content

Commit

Permalink
Merge branch 'master' into 20240101-eol-ruby-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld authored Jan 3, 2024
2 parents 40c9020 + 4e27275 commit 46be393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
end

# This shim is for Rails 7.1 compatibility in the test
module Rails5Compatibility
module Rails7Compatibility
module MigrationContext
def initialize(migrations_paths, schema_migration = nil)
super(migrations_paths)
Expand All @@ -69,5 +69,5 @@ def initialize(migrations_paths, schema_migration = nil)
end

if ActiveRecord::VERSION::STRING >= '7.1'
ActiveRecord::MigrationContext.send :prepend, Rails5Compatibility::MigrationContext
ActiveRecord::MigrationContext.send :prepend, Rails7Compatibility::MigrationContext
end

0 comments on commit 46be393

Please sign in to comment.