postgresql_makara adapter is Postgres, not MySQL
This commit is contained in:
parent
194971da19
commit
4f4f248fa1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user