mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Switch to db config to disable advisory locks.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user