mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
added api log to database example
This commit is contained in:
parent
82463fd99d
commit
6c4e5da5f6
2 changed files with 18 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue