mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
Exclude versions table when loading models in Unicorn.
This commit is contained in:
parent
d2ac7a9476
commit
91dfe23d6f
@ -66,7 +66,7 @@ before_fork do |server, worker|
|
||||
I18n.t(:posts)
|
||||
|
||||
# load up all models and schema
|
||||
(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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user