From 3e6a1764c7e81aee98f0beaf08e07e1bd71cd77f Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 23 Nov 2018 00:47:48 +0500 Subject: [PATCH] Configure database connection --- config/database.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/database.yml b/config/database.yml index aa4024d..f7c1c0e 100644 --- a/config/database.yml +++ b/config/database.yml @@ -21,7 +21,7 @@ default: &default # http://guides.rubyonrails.org/configuring.html#database-pooling pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> -development: +development: &development <<: *default database: partynest_development @@ -29,19 +29,19 @@ development: # To create additional roles in postgres see `$ createuser --help`. # When left blank, postgres will use the default role. This is # the same name as the operating system user that initialized the database. - #username: partynest + username: partynest # The password associated with the postgres role (username). - #password: + password: password # Connect on a TCP socket. Omitted by default since the client uses a # domain socket that doesn't need configuration. Windows does not have # domain sockets, so uncomment these lines. - #host: localhost + host: localhost # The TCP port the server listens on. Defaults to 5432. # If your server runs on a different port number, change accordingly. - #port: 5432 + port: 5432 # Schema search path. The server defaults to $user,public #schema_search_path: myapp,sharedapp,public @@ -56,7 +56,7 @@ development: # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: - <<: *default + <<: *development database: partynest_test # As with config/secrets.yml, you never want to store sensitive information,