summaryrefslogtreecommitdiff
path: root/app/models/members
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-14 15:16:00 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-14 15:16:00 +0200
commitcb5362e7ce0496e4fa7bec4ae629fd24e93d721e (patch)
tree4375ae5e99f11d51032559a95c12f1491bcd9e1f /app/models/members
parent0013ea5130494326f37fb1d6988a369fa2c91d22 (diff)
downloadgitlab-ce-cb5362e7ce0496e4fa7bec4ae629fd24e93d721e.tar.gz
Follow newline guidelines.
Diffstat (limited to 'app/models/members')
-rw-r--r--app/models/members/project_member.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/members/project_member.rb b/app/models/members/project_member.rb
index ce704a60d63..0a3b4d2182b 100644
--- a/app/models/members/project_member.rb
+++ b/app/models/members/project_member.rb
@@ -80,6 +80,7 @@ class ProjectMember < Member
def truncate_teams(project_ids)
ProjectMember.transaction do
members = ProjectMember.where(source_id: project_ids)
+
members.each do |member|
member.destroy
end