debian-mirror-gitlab/app/helpers/admin/components_helper.rb
2023-03-17 16:20:25 +05:30

15 lines
397 B
Ruby

# 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