FIX: Remove versions from Active Record warm up (#8105)

FIX: Remove versions from Active Record warm up (#8105)

diff --git a/config/initializers/100-sidekiq.rb b/config/initializers/100-sidekiq.rb
index 0bb77a0..9f41ec5 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

GitHub sha: f64c9f37

2 Likes