mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +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
|
module ApiLog
|
||||||
class Db < ActiveRecord::Base
|
class Db < ActiveRecord::Base
|
||||||
self.abstract_class = true
|
self.abstract_class = true
|
||||||
establish_connection "api_log_#{Rails.env}".to_sym
|
establish_connection "api_log_#{Rails.env}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,21 +11,36 @@ development:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: registry_development
|
database: registry_development
|
||||||
|
|
||||||
development:
|
whois_development:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: registry_whois_development
|
database: registry_whois_development
|
||||||
|
|
||||||
|
api_log_development:
|
||||||
|
<<: *default
|
||||||
|
database: api_log_development
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: registry_test
|
database: registry_test
|
||||||
|
|
||||||
|
whois_test:
|
||||||
|
<<: *default
|
||||||
|
database: registry_whois_test
|
||||||
|
|
||||||
|
api_log_test:
|
||||||
|
<<: *default
|
||||||
|
database: api_log_test
|
||||||
|
|
||||||
|
|
||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: registry_production
|
database: registry_production
|
||||||
|
|
||||||
production:
|
whois_production:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: registry_whois_production
|
database: registry_whois_production
|
||||||
|
|
||||||
|
api_log_production:
|
||||||
|
<<: *default
|
||||||
|
database: api_log_production
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue