mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
8 lines
280 B
Ruby
8 lines
280 B
Ruby
module ApiLog
|
|
class Db < ActiveRecord::Base
|
|
self.abstract_class = true
|
|
# to_sym is needed because passing a string to ActiveRecord::Base.establish_connection
|
|
# for a configuration lookup is deprecated
|
|
establish_connection "api_log_#{Rails.env}".to_sym
|
|
end
|
|
end
|