]> cat aescling's git repositories - mastodon.git/commitdiff
Fix ActiveRecord monkey-patching migration hack
authorClaire <claire.github-309c@sitedethib.com>
Fri, 19 Mar 2021 13:31:10 +0000 (14:31 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Wed, 24 Mar 2021 09:55:02 +0000 (10:55 +0100)
config/initializers/0_duplicate_migrations.rb

index 194aff70cb0c03e88c2df533db93916ca897c33f..6c45e4bd23e257f2b74e8c986a9cd3380d49da71 100644 (file)
@@ -16,7 +16,7 @@ ALLOWED_DUPLICATES = [20180410220657, 20180831171112].freeze
 
 module ActiveRecord
   class Migrator
-    def self.new(direction, migrations, target_version = nil)
+    def self.new(direction, migrations, schema_migration, target_version = nil)
       migrated = Set.new(Base.connection.migration_context.get_all_versions)
 
       migrations.group_by(&:name).each do |name, duplicates|
@@ -34,7 +34,7 @@ module ActiveRecord
         end
       end
 
-      super(direction, migrations, target_version)
+      super(direction, migrations, schema_migration, target_version)
     end
   end