diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-07-17 17:38:43 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-07-19 12:35:17 +0300 |
commit | a9d940bffcf7447f8d62012bd1c8f866697a12d6 (patch) | |
tree | 98a3cb03c47cb7d066c456e5931ccb5a8662dbb2 /app/services | |
parent | 0cd42fea229a4e3ab9e7e11236b7bd08cff45d00 (diff) |
Use Ghost user when edited_by, merged_by deleted
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/users/migrate_to_ghost_user_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/users/migrate_to_ghost_user_service.rb b/app/services/users/migrate_to_ghost_user_service.rb index 4628c4c6f6e..3a9c151cf9b 100644 --- a/app/services/users/migrate_to_ghost_user_service.rb +++ b/app/services/users/migrate_to_ghost_user_service.rb @@ -50,10 +50,12 @@ module Users def migrate_issues user.issues.update_all(author_id: ghost_user.id) + Issue.where(last_edited_by_id: user.id).update_all(last_edited_by_id: ghost_user.id) end def migrate_merge_requests user.merge_requests.update_all(author_id: ghost_user.id) + MergeRequest.where(merge_user_id: user.id).update_all(merge_user_id: ghost_user.id) end def migrate_notes |