diff --git a/config/database.yml b/config/database.yml
index 127a78abfab39cb37be63552595bd3116af2eea5..bfb53f21b4a51214453da1dbc5c2515a55072342 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -2,6 +2,7 @@ default: &default
   adapter: postgresql
   pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>
   timeout: 5000
+  connect_timeout: 15
   encoding: unicode
   sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>