Skip to content

Commit

Permalink
Put DATABSE_URL in the default section
Browse files Browse the repository at this point in the history
  • Loading branch information
pch committed Jan 21, 2024
1 parent 71b6a71 commit 405b2e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ 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 } %>
url: <%= ENV['DATABASE_URL'] || "postgres://localhost:5432" %>

development:
<<: *default
url: <%= ENV['DATABASE_URL'] || "postgres://localhost:5432" %>
database: boilerplate_development

# The specified database role being used to connect to postgres.
Expand Down Expand Up @@ -58,7 +58,6 @@ development:
# Do not set this db to the same as development or production.
test:
<<: *default
url: <%= ENV['DATABASE_URL'] || ENV['DATABASE_URL_LOCAL'] %>
database: boilerplate_test

# As with config/credentials.yml, you never want to store sensitive information,
Expand Down

0 comments on commit 405b2e5

Please sign in to comment.