From 42ddc0bf3c49ca90229a4fc615bad3d97ac0e332 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 11 Sep 2015 17:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20150911064528_alter_user_activities.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20150911064528_alter_user_activities.rb b/db/migrate/20150911064528_alter_user_activities.rb index 07cccae89..b6ede5bdb 100644 --- a/db/migrate/20150911064528_alter_user_activities.rb +++ b/db/migrate/20150911064528_alter_user_activities.rb @@ -1,6 +1,6 @@ class AlterUserActivities < ActiveRecord::Migration def up - UserActivity.each do |activity| + UserActivity.all.each do |activity| if activity.act_type == 'Message' if activity.act unless activity.act.parent_id.nil?