added api log to database example

This commit is contained in:
Priit Tark 2015-01-15 17:12:59 +02:00
parent 82463fd99d
commit 6c4e5da5f6
2 changed files with 18 additions and 3 deletions

View file

@ -1,6 +1,6 @@
module ApiLog
class Db < ActiveRecord::Base
self.abstract_class = true
establish_connection "api_log_#{Rails.env}".to_sym
establish_connection "api_log_#{Rails.env}"
end
end

View file

@ -11,21 +11,36 @@ development:
<<: *default
database: registry_development
development:
whois_development:
<<: *default
database: registry_whois_development
api_log_development:
<<: *default
database: api_log_development
test:
<<: *default
database: registry_test
whois_test:
<<: *default
database: registry_whois_test
api_log_test:
<<: *default
database: api_log_test
production:
<<: *default
database: registry_production
production:
whois_production:
<<: *default
database: registry_whois_production
api_log_production:
<<: *default
database: api_log_production