debian-mirror-gitlab/lib/gitlab/database.rb
2015-10-24 18:46:33 +05:30

11 lines
247 B
Ruby

module Gitlab
module Database
def self.mysql?
ActiveRecord::Base.connection.adapter_name.downcase == 'mysql'
end
def self.postgresql?
ActiveRecord::Base.connection.adapter_name.downcase == 'postgresql'
end
end
end