diff --git a/lib/active_record/connection_adapters/postgresql_adapter.rb b/lib/active_record/connection_adapters/postgresql_adapter.rb new file mode 100644 index 00000000000..30cea9f81ea --- /dev/null +++ b/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -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