Many Changes: Rename privacy_policy, fixed seed.rb, fixed status in migration file, created new job for operator

This commit is contained in:
2024-09-09 14:35:07 +02:00
parent cf8cc196a3
commit c195cd3b22
11 changed files with 59 additions and 44 deletions

View File

@@ -36,7 +36,7 @@ end
'DasNächsteMalGeheIchWoAndersHin.pdf' ].shuffle.each do |pdf|
status = %i[open open open open open printing pickup paid canceled].sample
job = Job.new(status:, privacy_policy_accepted: true)
job = Job.new(status:, privacy_policy: true)
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
job.costumer = students[rand(0...4)]
job.save!