about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-12-07 00:39:36 +0100
committerGitHub <noreply@github.com>2022-12-07 00:39:36 +0100
commit3d40282f1b7a281d29260c3f7567ccafc9719c2b (patch)
tree929b63d937ff7292b24af1bb0411a272fdbc37e2
parente538584fbed65ef020c889a21065893df9d23414 (diff)
Change postgres connection timeout (#21790)
-rw-r--r--config/database.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/database.yml b/config/database.yml
index 127a78abf..bfb53f21b 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" %>