From 7bc5230cbaae58fb6f8512d1d1b0e6a2eb989b56 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Tue, 6 Feb 2024 13:14:21 +0000 Subject: [PATCH] fix: re-add reconnect: true to database This is deprecated and, in my tests, isn't needed but to avoid any potential issues I am re-adding it here. When we upgrade to Rails 7.1, we can remove this and that'll handle reconnections as appropriate. --- config/database.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/database.yml b/config/database.yml index 577adc2..9c7d94b 100644 --- a/config/database.yml +++ b/config/database.yml @@ -1,5 +1,6 @@ default: &default adapter: mysql2 + reconnect: true encoding: <%= Postal.config.main_db.encoding %> pool: <%= Postal.config.main_db.pool_size %> username: <%= Postal.config.main_db.username %>