Skip to content

Commit

Permalink
Rename local var
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Nov 26, 2023
1 parent 6d938af commit d16c437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d16c437

Please sign in to comment.