Remove unnecessary SiteSetting.refresh!.

* It is already `refresh!`ed in our initializer.
This commit is contained in:
Guo Xiang Tan 2017-10-12 17:15:26 +08:00
parent 91dfe23d6f
commit 4556e95837

View File

@ -3,7 +3,6 @@ require 'column_dropper'
# fix any bust caches post initial migration
ActiveRecord::Base.send(:subclasses).each { |m| m.reset_column_information }
SiteSetting.refresh!
uncat_id = SiteSetting.uncategorized_category_id
uncat_id = -1 unless Numeric === uncat_id