This commit is contained in:
parent
ea85c0c608
commit
dc7ff8f90f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue