FIX: Pass local scope variable to inner function

FIX: Pass local scope variable to inner function

diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake
index c837a45..7b8faca 100644
--- a/lib/tasks/db.rake
+++ b/lib/tasks/db.rake
@@ -114,7 +114,7 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
 
   SeedFu.quiet = true
 
-  def execute_concurently(concurrency)
+  def execute_concurently(concurrency, exceptions)
     queue = Queue.new
 
     RailsMultisite::ConnectionManagement.each_connection do |db|
@@ -148,7 +148,7 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
     end.each(&:join)
   end
 
-  execute_concurently(concurrency) do |db|
+  execute_concurently(concurrency, exceptions) do |db|
     puts "Migrating #{db}"
     ActiveRecord::Tasks::DatabaseTasks.migrate
 
@@ -160,7 +160,7 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
   seed_paths = DiscoursePluginRegistry.seed_paths
   SeedFu.seed(seed_paths, /001_refresh/)
 
-  execute_concurently(concurrency) do |db|
+  execute_concurently(concurrency, exceptions) do |db|
     puts "Seeding #{db}"
     SeedFu.seed(seed_paths)
   end

GitHub sha: 2e1efbde

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/rake-multisite-migrate-is-broken/155329/3

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/rake-multisite-migrate-is-broken/155329/7