Skip to content

Add rubocop to prevent use of subtransactions

What does this MR do?

Adds a new cop that flags usage of the transaction method with requires_new: true as an argument.

See #338730 (closed), also #338346 (closed) for surrounding context of why this is needed.

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Patrick Bair

Merge request reports