discourse/config/initializers/05-site_settings.rb

8 lines
192 B
Ruby
Raw Normal View History

2013-02-26 00:42:20 +08:00
RailsMultisite::ConnectionManagement.each_connection do
begin
SiteSetting.refresh!
rescue ActiveRecord::StatementInvalid
# This will happen when migrating a new database
end
2013-02-06 03:16:51 +08:00
end