Welcome to mirror list, hosted at ThFree Co, Russian Federation.

database.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71f37f1fef8b27d5092792d7bd9b77b65541c9be (plain)
1
2
3
4
5
6
7
8
9
10
11
module Gitlab
  module Database
    def self.mysql?
      ActiveRecord::Base.connection.adapter_name.downcase == 'mysql2'
    end

    def self.postgresql?
      ActiveRecord::Base.connection.adapter_name.downcase == 'postgresql'
    end
  end
end