Commit 8ea1dafe authored by James Lopez's avatar James Lopez
Browse files

use destroy_all

parent 6da59520dfcb
...@@ -41,9 +41,7 @@ def missing_keys_tracking_hash ...@@ -41,9 +41,7 @@ def missing_keys_tracking_hash
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment