FIX: Remove versions from Active Record warm up (#8105)
This commit is contained in:
parent
e7ea5d3099
commit
f64c9f37fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue