Increased jobs in seeds
This commit is contained in:
@@ -34,7 +34,8 @@ students = []
|
||||
end
|
||||
|
||||
# Jobs
|
||||
[ 'GanzWichtig.pdf', 'IchBinIn5MinDran.pdf', 'DerPlanDerImmerProblemeMacht.pdf',
|
||||
5.times do
|
||||
[ 'GanzWichtig.pdf', 'IchBinIn5MinDran.pdf', 'DerPlanDerImmerProblemeMacht.pdf',
|
||||
'DieFarbenGefallenMirNicht.pdf', 'MachHinIchHabsEilig.pdf', 'WarumDauertDasSoLange.pdf',
|
||||
'DenPlanBezahleIchNicht.pdf', 'IchWarAlsErstesDran.pdf', 'WarumIstDerPlotterDefekt.pdf',
|
||||
'DasNächsteMalGeheIchWoAndersHin.pdf' ].shuffle.each do |pdf|
|
||||
@@ -44,4 +45,5 @@ end
|
||||
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
|
||||
job.costumer = students[rand(0...4)]
|
||||
job.save!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user