mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
12 lines
248 B
Ruby
12 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
|