Displaying 1 result from an estimated 1 matches for "task_filters".
Did you mean:
has_filters
2010 Nov 24
0
Surprise in (delete_all | clear | destroy_all) on association
...`task_filter_qualifiers` SET `task_filter_id` = NULL WHERE
`task_filter_qualifiers`.`task_filter_id` = 1 AND
`task_filter_qualifiers`.`id` IN (90, 91)
COMMIT
Why UPDATE, not DELETE ?
With :dependent => :destroy
TaskFilter.first.qualifiers.delete_all =>
TaskFilter Load (0.9ms) SELECT `task_filters`.* FROM `task_filters` LIMIT
1
TaskFilterQualifier Load (0.9ms) SELECT `task_filter_qualifiers`.* FROM
`task_filter_qualifiers` WHERE (`task_filter_qualifiers`.task_filter_id = 1)
SQL (0.2ms) BEGIN
AREL (6.6ms) DELETE FROM `task_filter_qualifiers` WHERE
(`task_filter_qualifiers`.`id` = 92)...