微信用户合并修改

This commit is contained in:
yuanke 2016-08-14 12:35:03 +08:00
parent 0fc6b84584
commit f50cfe159c
1 changed files with 1 additions and 0 deletions

View File

@ -22,5 +22,6 @@ class UserWechat < ActiveRecord::Base
Comment.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)
UserActivity.where(user_id: old_user).update_all(user_id: u.id)
end
end