postgresql_makara adapter is Postgres, not MySQL

This commit is contained in:
rubic0n 2021-01-10 23:05:57 -06:00
parent 194971da19
commit 4f4f248fa1
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ module GabSocial
module MigrationHelpers module MigrationHelpers
# Stub for Database.postgresql? from GitLab # Stub for Database.postgresql? from GitLab
def self.postgresql? def self.postgresql?
ActiveRecord::Base.configurations[Rails.env]['adapter'].casecmp('postgresql').zero? %w[postgresql postgresql_makara].any? do |adapter|
ActiveRecord::Base.configurations[Rails.env]['adapter'].casecmp(adapter).zero?
end
end end
# Stub for Database.mysql? from GitLab # Stub for Database.mysql? from GitLab