Revert "Remove unnecessary `SiteSetting.refresh!`."

This reverts commit 4556e95837.
This commit is contained in:
Guo Xiang Tan 2017-10-12 17:43:58 +08:00
parent 4556e95837
commit eb85922083
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ 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