internetee-registry/app/models/api_log/db.rb
Martin Lensment 3aa1992080 Bump epp-xml
2015-01-19 10:48:34 +02:00

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