We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b52506a commit c0ce67aCopy full SHA for c0ce67a
db/seeds.rb
@@ -90,7 +90,9 @@
90
phases: [phase],
91
publisher_organisation: orgs.first,
92
publisher: FactoryBot.create(:publisher, organisations: [orgs.first]) }
93
- FactoryBot.create(:vacancy, :for_seed_data, **attrs)
+ Vacancy.transaction do
94
+ 20.times { FactoryBot.create(:vacancy, :for_seed_data, **attrs) }
95
+ end
96
end
97
98
# Vacancies at Weydon trust central office
0 commit comments