1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add a changelog entry for #14546 [ci skip]

This commit is contained in:
Robin Dupret 2014-04-13 11:13:19 +02:00
parent 47d9321a1e
commit 5d5beccc8c

View file

@ -1,3 +1,17 @@
* Calling `delete_all` on an unloaded `CollectionProxy` no longer
generates a SQL statement containing each id of the collection:
Before:
DELETE FROM `model` WHERE `model`.`parent_id` = 1
AND `model`.`id` IN (1, 2, 3...)
After:
DELETE FROM `model` WHERE `model`.`parent_id` = 1
*Eileen M. Uchitelle*, *Aaron Patterson*
* Fixed error for aggregate methods (`empty?`, `any?`, `count`) with `select`
which created invalid SQL.