2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +08:00

Move monkey patch into freedom_patchers.

This commit is contained in:
Guo Xiang Tan 2017-11-21 14:15:11 +08:00
parent 337ccfa3a6
commit c390169b71

View file

@ -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