Skip to content

Commit

Permalink
in db config, prepare simple values to blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
yawboakye committed Jul 26, 2024
1 parent def0397 commit 7691307
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion guides/source/command_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ default: &default

# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS", 5) %>

development:
<<: *default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
default: &default
adapter: mysql2
encoding: utf8mb4
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
pool: <%%= ENV.fetch("RAILS_MAX_THREADS", 5) %>
username: root
password:
<% if database.socket -%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ default: &default
encoding: unicode
# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
pool: <%%= ENV.fetch("RAILS_MAX_THREADS", 5) %>
<% if devcontainer? -%>
<%% if ENV["DB_HOST"] %>
host: <%%= ENV["DB_HOST"] %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
default: &default
adapter: sqlite3
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
pool: <%%= ENV.fetch("RAILS_MAX_THREADS", 5) %>
timeout: 5000

development:
Expand Down Expand Up @@ -37,4 +37,4 @@ production:
production:
<<: *default
database: storage/production.sqlite3
<%- end -%>
<%- end -%>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
default: &default
adapter: trilogy
encoding: utf8mb4
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
pool: <%%= ENV.fetch("RAILS_MAX_THREADS", 5) %>
username: root
password:
<% if database.socket -%>
Expand Down

0 comments on commit 7691307

Please sign in to comment.