database.rb 248 Bytes EditWeb IDE 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