Module: DatabaseReflection

Extended by:
ActiveSupport::Concern
Included in:
ApplicationRecord, Feature::FlipperFeature
Defined in:
app/models/concerns/database_reflection.rb

Overview

A module that makes it easier/less verbose to reflect upon a database connection.

Using this module you can write this:

User.database.database_name

Instead of this:

Gitlab::Database::Reflection.new(User).database_name