迁移文件

This commit is contained in:
cxt 2015-09-11 17:19:40 +08:00
parent 9dc3f43af1
commit 42ddc0bf3c
1 changed files with 1 additions and 1 deletions

View File

@ -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?