Skip to content

Commit

Permalink
Reverse changes on database.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
patanj101 committed May 26, 2024
1 parent ede4994 commit 2994a01
Showing 1 changed file with 24 additions and 35 deletions.
59 changes: 24 additions & 35 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,41 @@
# PostgreSQL. Versions 9.1 and up are supported.
# PostgreSQL. Versions 9.3 and up are supported.
#
# Install the pg driver:
# gem install pg
# On OS X with Homebrew:
# On macOS with Homebrew:
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
# On OS X with MacPorts:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
#
# Configure Using Gemfile
# gem 'pg'
# gem "pg"
#
default: &default
adapter: postgresql
encoding: unicode
# For details on connection pooling, see Rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>

# If you'd like to use the docker development setup, uncomment the three
# following lines. They will also be used for the test database.
# username: postgres
# password: password
# host: localhost

development:
<<: *default
database: cheddar_development

# The specified database role being used to connect to postgres.
# 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: cheddar_development_username
# The specified database role being used to connect to PostgreSQL.
# To create additional roles in PostgreSQL see `$ createuser --help`.
# When left blank, PostgreSQL will use the default role. This is
# the same name as the operating system user running Rails.
#username: cheddar

# The password associated with the postgres role (username).
password: cheddar_development_password
# The password associated with the PostgreSQL role (username).
#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.
Expand All @@ -64,32 +56,29 @@ development:
test:
<<: *default
database: cheddar_test
username: cheddar_test_username
password: cheddar_test_password
host: localhost


# As with config/secrets.yml, you never want to store sensitive information,
# As with config/credentials.yml, you never want to store sensitive information,
# like your database password, in your source code. If your source code is
# ever seen by anyone, they now have access to your database.
#
# Instead, provide the password as a unix environment variable when you boot
# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
# for a full rundown on how to provide these environment variables in a
# production deployment.
#
# On Heroku and other platform providers, you may have a full connection URL
# available as an environment variable. For example:
# Instead, provide the password or a full connection URL as an environment
# variable when you boot the app. For example:
#
# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
#
# You can use this database configuration with:
# If the connection URL is provided in the special DATABASE_URL environment
# variable, Rails will automatically merge its configuration values on top of
# the values provided in this file. Alternatively, you can specify a connection
# URL environment variable explicitly:
#
# production:
# url: <%= ENV['DATABASE_URL'] %>
# url: <%= ENV["MY_APP_DATABASE_URL"] %>
#
# Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
# for a full overview on how database connection configuration can be specified.
#
production:
<<: *default
database: cheddar_production
username: cheddar
password: <%= ENV["CHEDDAR_DATABASE_PASSWORD"] %>
password: <%= ENV["CHEDDAR_DATABASE_PASSWORD"] %>

0 comments on commit 2994a01

Please sign in to comment.