• L
    Fix `Relation#delete_all` inconsistency · 5866437e
    Leandro Facchinetti 提交于
    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
    5866437e
relations_test.rb 51.8 KB