Skip to content

Commit

Permalink
Tweak seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Nov 26, 2023
1 parent d16c437 commit 90840b3
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 = 10
TASKS_PER_PROJECT_COUNT = 6

PROJECT_COUNT.times.each do |project_index|
project = Project.create!(name: "Project #{project_index}")
project = Project.create!(name: "Project #{project_index + 1}")

TASKS_PER_PROJECT_COUNT.times.each do |task_index|
project.tasks.create!(title: "Task #{task_index}")
project.tasks.create!(title: "Task #{task_index + 1}")
end
end

0 comments on commit 90840b3

Please sign in to comment.