From 12b45410fa52034ccfcb4565f0826145345268c7 Mon Sep 17 00:00:00 2001 From: mendespedro Date: Tue, 22 Jul 2025 16:31:26 -0300 Subject: [PATCH] replacing deprecated `retries` option for `timeout` in rails 8 and above --- test/dummy/config/database.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/dummy/config/database.yml b/test/dummy/config/database.yml index fdb186a5..95a086c5 100644 --- a/test/dummy/config/database.yml +++ b/test/dummy/config/database.yml @@ -11,7 +11,11 @@ default: &default adapter: sqlite3 pool: 50 - retries: 100 + <% if Rails::VERSION::MAJOR >= 8 %> + timeout: 5000 + <% else %> + retries: 100 # "retries" is deprecated in rails 8 and will be removed in rails 8.1 + <% end %> <% elsif ENV["TARGET_DB"] == "postgres" %> default: &default