Config for test and development docker containers

This commit is contained in:
Maciej Szlosarczyk 2018-04-13 15:44:19 +03:00
parent b02df5ef02
commit 359e444839
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
7 changed files with 113 additions and 6 deletions

View file

@ -16,6 +16,14 @@ require 'rails/all'
Bundler.require(*Rails.groups)
module DomainNameRegistry
# Add "db" to the list hosts on which you can run `rake db:setup:all`
# Only allow that in test and development.
if ['development', 'test'].include?(Rails.env)
ActiveRecord::Tasks::DatabaseTasks::LOCAL_HOSTS << "db"
end
module Registry
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers