Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit a50846d

Browse files
authored
Merge pull request #129 from zendesk/bquorning/remove-unused-code
Remove unused method
2 parents c4db921 + 7a19844 commit a50846d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

lib/active_record_shards/migration.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,6 @@ class << self
1414
alias_method :"#{m}_without_sharding", m.to_sym
1515
alias_method m.to_sym, :"#{m}_with_sharding"
1616
end
17-
18-
def bootstrap_migrations_from_nil_shard(migrations_path, this_migration = nil)
19-
migrations = nil
20-
ActiveRecord::Base.on_shard(nil) do
21-
migrations = ActiveRecord::Migrator.new(:up, migrations_path).migrated
22-
end
23-
24-
puts "inserting #{migrations.size} migrations on all shards..."
25-
ActiveRecord::Base.on_all_shards do
26-
migrator = ActiveRecord::Migrator.new(:up, migrations_path)
27-
migrations.each do |m|
28-
migrator.__send__(:record_version_state_after_migrating, m)
29-
end
30-
if this_migration
31-
migrator.__send__(:record_version_state_after_migrating, this_migration)
32-
end
33-
end
34-
end
3517
end
3618

3719
# don't allow Migrator class to cache versions

0 commit comments

Comments
 (0)