`lib/gitlab/database/migrations/observers/migration_observer.rb` should work with many databases
Currently, our observers are using ActiveRecord::Base.connection
to collect metrics from the migrations.
We should use ActiveRecord::Migration.connection
to fetch the currently established connection instead of using ActiveRecord::Base
.
Edited by Diogo Frazão