From d16c4370cfab022a1e955a022ef7e219c6533476 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Sun, 26 Nov 2023 17:47:29 +0100 Subject: [PATCH] Rename local var --- db/seeds.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 546140e..d3ea7a4 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,10 +1,10 @@ PROJECT_COUNT = 30 TASKS_PER_PROJECT_COUNT = 20 -PROJECT_COUNT.times.each do |project_id| - project = Project.create!(name: "Project #{project_id}") +PROJECT_COUNT.times.each do |project_index| + project = Project.create!(name: "Project #{project_index}") - TASKS_PER_PROJECT_COUNT.times.each do |task_id| - project.tasks.create!(title: "Task #{task_id}") + TASKS_PER_PROJECT_COUNT.times.each do |task_index| + project.tasks.create!(title: "Task #{task_index}") end end