PG::ConnectionBad in ResultsController#index

could not connect to server: Connection refused Is the server running on host "db" (10.0.0.22) and accepting TCP/IP connections on port 5432?

Extracted source (around line #45):
43
44
45
46
47
48
              
private
def set_platform
@platform = Platform.find(params[:platform_id])
end
# Use callbacks to share common setup or constraints between actions.
def set_result

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"platform_id"=>"1989"}

Response

Headers:

None