gitlab-org--gitlab-foss/lib/gitlab/database.rb
2015-10-22 10:18:44 +02:00

11 lines
248 B
Ruby

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