discourse/config/initializers/05-site_settings.rb
2013-03-13 15:15:22 +00:00

7 lines
192 B
Ruby

RailsMultisite::ConnectionManagement.each_connection do
begin
SiteSetting.refresh!
rescue ActiveRecord::StatementInvalid
# This will happen when migrating a new database
end
end