mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 15:03:44 +08:00
9 lines
232 B
Ruby
9 lines
232 B
Ruby
|
# 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
|