Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
09f6a67577
|
@ -1,6 +1,6 @@
|
||||||
class AlterUserActivities < ActiveRecord::Migration
|
class AlterUserActivities < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
UserActivity.each do |activity|
|
UserActivity.all.each do |activity|
|
||||||
if activity.act_type == 'Message'
|
if activity.act_type == 'Message'
|
||||||
if activity.act
|
if activity.act
|
||||||
unless activity.act.parent_id.nil?
|
unless activity.act.parent_id.nil?
|
||||||
|
|
Loading…
Reference in New Issue