@@ -16,8 +16,8 @@ default: &default
1616 adapter : postgresql
1717 encoding : unicode
1818 host : <%= ENV.fetch('DATABASE_HOST') { 'localhost' } %>
19- user : <%= ENV.fetch('DATABASE_USERNAME') { 'postgres ' } %>
20- password : <%= ENV.fetch('DATABASE_PASSWORD') { 'postgres ' } %>
19+ user : <%= ENV.fetch('DATABASE_USERNAME') { 'skillrx ' } %>
20+ password : <%= ENV.fetch('DATABASE_PASSWORD') { '' } %>
2121 port : <%= ENV.fetch('DATABASE_PORT') { 5432 } %>
2222 # For details on connection pooling, see Rails configuration guide
2323 # https://guides.rubyonrails.org/configuring.html#database-pooling
@@ -64,9 +64,11 @@ development:
6464# Do not set this db to the same as development or production.
6565test :
6666 primary :
67- url : <%= ENV["DATABASE_URL"] %>
67+ << : *default
68+ database : skillrx_test
6869 queue :
69- url : <%= ENV["QUEUE_DATABASE_URL"] %>
70+ << : *default
71+ database : skillrx_test_queue
7072 migrations_paths : db/queue_migrate
7173
7274# As with config/credentials.yml, you never want to store sensitive information,
@@ -115,9 +117,9 @@ staging:
115117 migrations_paths : db/cache_migrate
116118 queue :
117119 << : *default
118- url : <%= ENV['HEROKU_POSTGRESQL_QUEUE_URL'] || ENV['DATABASE_URL '] %>
120+ url : <%= ENV['HEROKU_POSTGRESQL_QUEUE_URL'] || ENV['QUEUE_DATABASE_URL '] %>
119121 migrations_paths : db/queue_migrate
120122 cable :
121123 << : *default
122- url : <%= ENV['HEROKU_POSTGRESQL_CABLE_URL'] || ENV['DATABASE_URL '] %>
124+ url : <%= ENV['HEROKU_POSTGRESQL_CABLE_URL'] || ENV['CABLE_DATABASE_URL '] %>
123125 migrations_paths : db/cable_migrate
0 commit comments