debian-mirror-gitlab/app/helpers/admin/components_helper.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
397 B
Ruby
Raw Normal View History

2023-03-17 16:20:25 +05:30
# frozen_string_literal: true
module Admin
module ComponentsHelper
def database_versions
Gitlab::Database.database_base_models.transform_values do |base_model|
reflection = ::Gitlab::Database::Reflection.new(base_model)
{
adapter_name: reflection.human_adapter_name,
version: reflection.version
}
end.symbolize_keys
end
end
end