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