MONKEYPATCH: Allow us to disable the use of advisory locks during migration.
This commit is contained in:
parent
b8c9975429
commit
337ccfa3a6
|
@ -0,0 +1,8 @@
|
|||
# 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
|
Loading…
Reference in New Issue