discourse/lib/freedom_patches/postgresql_adapter.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
263 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Awaiting decision on https://github.com/rails/rails/issues/31190
if ENV['DISABLE_MIGRATION_ADVISORY_LOCK']
class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
def supports_advisory_locks?
false
end
end
end