diff options
author | Valery Sizov <valery@gitlab.com> | 2017-05-16 21:18:15 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-05-16 23:51:50 +0300 |
commit | 793b9a5ced5f97feabca329e335f8ce7b1fb6708 (patch) | |
tree | c0e2126bd25b59be88e9a444d53eb3d4ed868978 /app/services | |
parent | 43befaf25f4f929d01a0af5ef3c2148002be7f4e (diff) |
Improve migration for Multipple issue assignee feature
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/members/authorized_destroy_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/members/authorized_destroy_service.rb b/app/services/members/authorized_destroy_service.rb index 7912cac65d3..eac7ef0c9b7 100644 --- a/app/services/members/authorized_destroy_service.rb +++ b/app/services/members/authorized_destroy_service.rb @@ -29,7 +29,7 @@ module Members issue_ids = IssuesFinder.new(user, group_id: member.source_id, assignee_id: member.user_id). execute.pluck(:id) - IssueAssignee.destroy_all(issue_id: issue_ids, user_id: member.user_id) + IssueAssignee.delete_all(issue_id: issue_ids, user_id: member.user_id) MergeRequestsFinder.new(user, group_id: member.source_id, assignee_id: member.user_id). execute. @@ -37,7 +37,7 @@ module Members else project = member.source - IssueAssignee.destroy_all( + IssueAssignee.delete_all( user_id: member.user_id, issue_id: project.issues.opened.assigned_to(member.user).select(:id) ) |