diff --git a/config/database.yml b/config/database.yml index 8ac7cd6..cdb0bea 100644 --- a/config/database.yml +++ b/config/database.yml @@ -24,6 +24,7 @@ development: # Do not set this db to the same as development or production. test: <<: *default + database: <%= ENV.fetch("DB_NAME_TEST") { } %> # Connection String Set by Heroku. If not set, the default is NULL { } production: diff --git a/config/initializers/environment.rb b/config/initializers/environment.rb index 563e769..3224512 100644 --- a/config/initializers/environment.rb +++ b/config/initializers/environment.rb @@ -14,4 +14,5 @@ ENV['DB_ENCODING_DEV'] = 'utf8' ENV['RAILS_MAX_THREADS_DEV'] = '5' ENV['CORS_ORIGIN'] = 'http://localhost:3000' + ENV['DB_NAME_TEST'] = 'sdc_test' end