mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix ActiveRecord monkey-patching migration hack
This commit is contained in:
parent
f60c99a8fb
commit
9541605024
@ -16,7 +16,7 @@ ALLOWED_DUPLICATES = [20180410220657, 20180831171112].freeze
|
|||||||
|
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
class Migrator
|
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)
|
migrated = Set.new(Base.connection.migration_context.get_all_versions)
|
||||||
|
|
||||||
migrations.group_by(&:name).each do |name, duplicates|
|
migrations.group_by(&:name).each do |name, duplicates|
|
||||||
@ -34,7 +34,7 @@ module ActiveRecord
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
super(direction, migrations, target_version)
|
super(direction, migrations, schema_migration, target_version)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user