微信用户合并修改
This commit is contained in:
parent
0fc6b84584
commit
f50cfe159c
|
@ -22,5 +22,6 @@ class UserWechat < ActiveRecord::Base
|
||||||
Comment.where(author_id: old_user).update_all(author_id: u.id)
|
Comment.where(author_id: old_user).update_all(author_id: u.id)
|
||||||
Message.where(author_id: old_user).update_all(author_id: u.id)
|
Message.where(author_id: old_user).update_all(author_id: u.id)
|
||||||
BlogComment.where(author_id: old_user).update_all(author_id: u.id)
|
BlogComment.where(author_id: old_user).update_all(author_id: u.id)
|
||||||
|
UserActivity.where(user_id: old_user).update_all(user_id: u.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue