Skip to content

Commit

Permalink
Adding defaults for dev env vars (#12)
Browse files Browse the repository at this point in the history
* Updated env vars

* adding null defaults to dev env vars
  • Loading branch information
jayshrivastava authored and Daniel Williams committed Oct 8, 2019
1 parent 27682a4 commit 48762e5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
#
default: &default
<<: *default
adapter: <%= ENV.fetch("DB_ADAPTER_DEV") %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS_DEV") %>
host: <%= ENV.fetch("DB_HOST_DEV") %>
port: <%= ENV.fetch("DB_PORT_DEV") %>
timeout: <%= ENV.fetch("DB_TIMEOUT_DEV") %>
encoding: <%= ENV.fetch("DB_ENCODING_DEV") %>
username: <%= ENV.fetch("DB_USER_DEV") %>
password: <%= ENV.fetch("DB_PASS_DEV") %>
database: <%= ENV.fetch("DB_NAME_DEV") %>
adapter: <%= ENV.fetch("DB_ADAPTER_DEV") { } %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS_DEV") { } %>
host: <%= ENV.fetch("DB_HOST_DEV") { } %>
port: <%= ENV.fetch("DB_PORT_DEV") { } %>
timeout: <%= ENV.fetch("DB_TIMEOUT_DEV") { } %>
encoding: <%= ENV.fetch("DB_ENCODING_DEV") { } %>
username: <%= ENV.fetch("DB_USER_DEV") { } %>
password: <%= ENV.fetch("DB_PASS_DEV") { } %>
database: <%= ENV.fetch("DB_NAME_DEV") { } %>

development:
<<: *default
Expand Down

0 comments on commit 48762e5

Please sign in to comment.