From ed9f6152bdcb95549a0627bfb449a6c5288b2d99 Mon Sep 17 00:00:00 2001 From: Wineshuga Date: Sat, 25 Nov 2023 20:26:18 +0100 Subject: [PATCH] Apply dry principle in database.yml --- config/database.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/config/database.yml b/config/database.yml index 5de7437..bf831a2 100644 --- a/config/database.yml +++ b/config/database.yml @@ -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. @@ -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,