Skip to content

Commit 50b5f77

Browse files
p-schlickmannrosa
authored andcommitted
replacing deprecated retries option for timeout in rails 8 and above
1 parent 0ba1b7e commit 50b5f77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/dummy/config/database.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
default: &default
1212
adapter: sqlite3
1313
pool: 50
14-
retries: 100
14+
<% if Rails::VERSION::MAJOR >= 8 %>
15+
timeout: 5000
16+
<% else %>
17+
retries: 100 # "retries" is deprecated in rails 8 and will be removed in rails 8.1
18+
<% end %>
1519

1620
<% elsif ENV["TARGET_DB"] == "postgres" %>
1721
default: &default

0 commit comments

Comments
 (0)