search for: task_filter_qualifi

Displaying 1 result from an estimated 1 matches for "task_filter_qualifi".

2010 Nov 24
0
Surprise in (delete_all | clear | destroy_all) on association
...vs model(delegated to relation). Given TaskFilter.has_many(:qualifiers, :class_name=>''TaskFilterQualifier'') TaskFilter.delete_all => one DELETE statement Without :dependent option on "qualifiers" association TaskFilter.first.qualifiers.delete_all => SELECT `task_filter_qualifiers`.* FROM `task_filter_qualifiers` WHERE (`task_filter_qualifiers`.task_filter_id = 1) BEGIN UPDATE `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...