Skip to content

Commit c0ce67a

Browse files
committed
400k vacancies
1 parent b52506a commit c0ce67a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

db/seeds.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@
9090
phases: [phase],
9191
publisher_organisation: orgs.first,
9292
publisher: FactoryBot.create(:publisher, organisations: [orgs.first]) }
93-
FactoryBot.create(:vacancy, :for_seed_data, **attrs)
93+
Vacancy.transaction do
94+
20.times { FactoryBot.create(:vacancy, :for_seed_data, **attrs) }
95+
end
9496
end
9597

9698
# Vacancies at Weydon trust central office

0 commit comments

Comments
 (0)