Skip to content

Commit

Permalink
Fix ActiveRecord::Migrator monkey-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Oct 24, 2023
1 parent 8a131fb commit 3c9c029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/0_duplicate_migrations.rb
Expand Up @@ -18,7 +18,7 @@

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|
Expand All @@ -38,7 +38,7 @@ def self.new(direction, migrations, schema_migration, target_version = nil)
end
end

super(direction, migrations, schema_migration, target_version)
super(direction, migrations, schema_migration, internal_metadata, target_version)
end
end

Expand Down

0 comments on commit 3c9c029

Please sign in to comment.