FIX: Can't boot Discourse app with read-only PG connection take 2.

This commit is contained in:
Guo Xiang Tan 2018-06-11 13:25:30 +08:00
parent 1dbe13886f
commit d192924876

View File

@ -57,6 +57,8 @@ class PostgreSQLFallbackHandler
end
def initiate_fallback_to_master
return unless @initialized
@masters_down.hash.keys.each do |key|
RailsMultisite::ConnectionManagement.with_connection(key) do
begin