This commit is contained in:
guange 2016-08-14 11:15:37 +08:00
parent ea85c0c608
commit dc7ff8f90f
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class UserWechat < ActiveRecord::Base
## 主要是将comment 迁移
User.delete(old_user)
JournalForMessages.where(user_id: old_user).update_all(user_id: u.id)
JournalForMessage.where(user_id: old_user).update_all(user_id: u.id)
Journal.where(user_id: old_user).update_all(user_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)