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

This commit is contained in:
Krzysztof Kotlarek 2019-09-19 07:59:51 +10:00 committed by Robin Ward
parent e7ea5d3099
commit f64c9f37fa
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if Sidekiq.server?
# warm up AR # warm up AR
RailsMultisite::ConnectionManagement.safe_each_connection do 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 table.classify.constantize.first rescue nil
end end
end end