Configure database connection
This commit is contained in:
parent
eed616688a
commit
3e6a1764c7
1 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue