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