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
|
end
|
||||||
|
|
||||||
def ensure_default_member!
|
def ensure_default_member!
|
||||||
@project.project_members.each do |member|
|
@project.project_members.destroy_all
|
||||||
member.destroy
|
|
||||||
end
|
|
||||||
|
|
||||||
ProjectMember.create!(user: @user, access_level: ProjectMember::MASTER, source_id: @project.id, importing: true)
|
ProjectMember.create!(user: @user, access_level: ProjectMember::MASTER, source_id: @project.id, importing: true)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue