Skip to content

Commit

Permalink
restored db defaults for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeCodes19 committed May 1, 2024
1 parent 3e65a58 commit 3e2bbb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,29 @@ development:
<<: *default
adapter: postgresql
encoding: unicode
database: "app_rails"
database: <%= ENV.fetch("DB_USERNAME") { "iv_cbv_payroll_development" } %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>

# 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 running Rails.
username: <%= ENV.fetch("DB_USERNAME") { "app_rails" } %>
username: <%= ENV.fetch("DB_USERNAME") { "iv_cbv_payroll" } %>

# The password associated with the postgres role (username).
password: <%= ENV.fetch("DB_PASSWORD") { "secret123" } %>
password: <%= ENV.fetch("DB_PASSWORD") { nil } %>

# 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: <%= ENV.fetch("DB_HOST") { "postgres" } %>
host: <%= ENV.fetch("DB_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

# Schema search path. The server defaults to $user,public
schema_search_path: public
#schema_search_path: myapp,sharedapp,public

# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
Expand Down

0 comments on commit 3e2bbb5

Please sign in to comment.