use destroy_all
This commit is contained in:
parent
dc58df4160
commit
8ea1dafe83
1 changed files with 1 additions and 3 deletions
|
@ -41,9 +41,7 @@ module Gitlab
|
|||
end
|
||||
|
||||
def ensure_default_member!
|
||||
@project.project_members.each do |member|
|
||||
member.destroy
|
||||
end
|
||||
@project.project_members.destroy_all
|
||||
|
||||
ProjectMember.create!(user: @user, access_level: ProjectMember::MASTER, source_id: @project.id, importing: true)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue