Group related write operations in a single transaction so they commit or roll back atomically.
Why This Matters
A partial failure mid-sequence leaves the database in an inconsistent state that is hard to detect and recover from.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.