diff --git a/db/migrate/20110110023610_notification_multiple_people.rb b/db/migrate/20110110023610_notification_multiple_people.rb index 7a86259f1..4b3f1c944 100644 --- a/db/migrate/20110110023610_notification_multiple_people.rb +++ b/db/migrate/20110110023610_notification_multiple_people.rb @@ -25,7 +25,7 @@ class NotificationMultiplePeople < ActiveRecord::Migration #select all the notifications to keep execute "CREATE TEMPORARY TABLE keep_table " + - "(SELECT id as keep_id, target_type , target_id , recipient_id , action as keep_id " + + "(SELECT id as keep_id, target_type , target_id , recipient_id , action" + "FROM notifications WHERE action = 'comment_on_post' OR action = 'also_commented' " + "GROUP BY target_type , target_id , recipient_id , action) "