2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-11-21 01:05:09 -05:00
|
|
|
# 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
|