Please sign in to comment.
Fix `Relation#delete_all` inconsistency
When relation scopes include one of `uniq`, `group`, `having` or `offset`, the generated query ignores them and that causes unintended records to be deleted. This solves the issue by restricting the deletion when those scopes are present. rails/rails#11985
- Loading branch information...
Showing with 18 additions and 4 deletions.