gitlab-org--gitlab-foss/lib/gitlab/database.rb

12 lines
248 B
Ruby
Raw Normal View History

module Gitlab
module Database
def self.mysql?
2015-10-22 04:18:44 -04:00
ActiveRecord::Base.connection.adapter_name.downcase == 'mysql2'
end
def self.postgresql?
ActiveRecord::Base.connection.adapter_name.downcase == 'postgresql'
end
end
end