ManageIQ/manageiq

View on GitHub
config/initializers/active_metrics.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# Note: The legacy Postgresql adapter ignores everything except the adapter name here, just stealing the current ActiveRecord connection.
require 'active_metrics'
ActiveMetrics::Base.establish_connection(:adapter => "miq_postgres", :database => "manageiq_metrics")