From 3c9c0299c081c15b8e46857b66dbdff6f17fc833 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 24 Oct 2023 20:23:46 +0200 Subject: [PATCH] Fix ActiveRecord::Migrator monkey-patch --- config/initializers/0_duplicate_migrations.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/0_duplicate_migrations.rb b/config/initializers/0_duplicate_migrations.rb index 1b8b590255..e99b5f1392 100644 --- a/config/initializers/0_duplicate_migrations.rb +++ b/config/initializers/0_duplicate_migrations.rb @@ -18,7 +18,7 @@ ALLOWED_DUPLICATES = [2018_04_10_220657, 2018_08_31_171112].freeze module ActiveRecord class Migrator - def self.new(direction, migrations, schema_migration, target_version = nil) + def self.new(direction, migrations, schema_migration, internal_metadata, target_version = nil) migrated = Set.new(Base.connection.migration_context.get_all_versions) migrations.group_by(&:name).each do |_name, duplicates| @@ -38,7 +38,7 @@ module ActiveRecord end end - super(direction, migrations, schema_migration, target_version) + super(direction, migrations, schema_migration, internal_metadata, target_version) end end