From 99dbd71c0da3770c28ed65a218cc6bf843d854aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Sun, 4 Aug 2024 22:29:20 +0200 Subject: [PATCH] Small fixes --- app/models/user.rb | 2 +- db/seeds.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index def4e28..398c97f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,3 +1,3 @@ class User < ApplicationRecord - has_many :Jobs, foreign_key: :costumer_id + has_many :jobs, foreign_key: :costumer_id end diff --git a/db/seeds.rb b/db/seeds.rb index 4a31379..2c7fe15 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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|