Skip to content

Commit

Permalink
Apply dry principle in database.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Wineshuga committed Nov 25, 2023
1 parent 2d56dc4 commit ed9f615
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@
default: &default
adapter: postgresql
encoding: unicode
username: postgres
password: Nweneary_96
# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>

development:
<<: *default
adapter: postgresql
host: localhost
port: 5433
username: postgres
password: Nweneary_96
database: buddy_budget_development

# The specified database role being used to connect to PostgreSQL.
Expand Down Expand Up @@ -60,11 +59,8 @@ development:
# Do not set this db to the same as development or production.
test:
<<: *default
adapter: postgresql
host: localhost
port: 5433
username: postgres
password: Nweneary_96
database: buddy_budget_test

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

0 comments on commit ed9f615

Please sign in to comment.