Skip to content

Commit

Permalink
Added test db (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayshrivastava authored Nov 15, 2019
1 parent 6cb16e1 commit 72d1139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions config/initializers/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 72d1139

Please sign in to comment.