Small fixes

This commit is contained in:
2024-08-04 22:29:20 +02:00
parent acc5790663
commit 99dbd71c0d
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
class User < ApplicationRecord
has_many :Jobs, foreign_key: :costumer_id
has_many :jobs, foreign_key: :costumer_id
end

View File

@@ -13,6 +13,7 @@ Faker::Config.locale = :de
10.times do
User.new(firstname: Faker::Name.unique.first_name, lastname: Faker::Name.unique.last_name).save
end
['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|