From f64c9f37fa78b2c5a46dd572452bda64274dd19b Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Thu, 19 Sep 2019 07:59:51 +1000 Subject: [PATCH] FIX: Remove versions from Active Record warm up (#8105) --- config/initializers/100-sidekiq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/100-sidekiq.rb b/config/initializers/100-sidekiq.rb index 0bb77a09ff9..9f41ec5799d 100644 --- a/config/initializers/100-sidekiq.rb +++ b/config/initializers/100-sidekiq.rb @@ -53,7 +53,7 @@ if Sidekiq.server? # warm up AR RailsMultisite::ConnectionManagement.safe_each_connection do - (ActiveRecord::Base.connection.tables - %w[schema_migrations]).each do |table| + (ActiveRecord::Base.connection.tables - %w[schema_migrations versions]).each do |table| table.classify.constantize.first rescue nil end end