迁移文件
This commit is contained in:
parent
9dc3f43af1
commit
42ddc0bf3c
|
@ -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