From 3119fc660f7a5a810d3e64447b5432ad30a9c5f1 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Sat, 29 Jan 2011 20:56:21 -0800 Subject: [PATCH] another space --- db/migrate/20110110023610_notification_multiple_people.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20110110023610_notification_multiple_people.rb b/db/migrate/20110110023610_notification_multiple_people.rb index 4b3f1c944..f1f670c2a 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" + + "(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) "