Fixed typo
This commit is contained in:
12
db/seeds.rb
12
db/seeds.rb
@@ -78,7 +78,7 @@ end
|
||||
job = Job.new(status:, privacy_policy: true, created_at: created_at)
|
||||
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
|
||||
student = students[rand(0..9)]
|
||||
job.costumer = student
|
||||
job.customer = student
|
||||
job.creator = student
|
||||
operator = operators[rand(0...1)]
|
||||
job.operator = operator if status != :open
|
||||
@@ -112,7 +112,7 @@ end
|
||||
job = Job.new(status:, privacy_policy: true, created_at: created_at)
|
||||
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
|
||||
student = students[rand(0...9)]
|
||||
job.costumer = student
|
||||
job.customer = student
|
||||
job.creator = student
|
||||
operator = operators[rand(0...1)]
|
||||
job.operator = operator if status == :paid
|
||||
@@ -137,7 +137,7 @@ end
|
||||
job = Job.new(status:, privacy_policy: true)
|
||||
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
|
||||
student = students[rand(0...4)]
|
||||
job.costumer = student
|
||||
job.customer = student
|
||||
job.creator = student
|
||||
operator = operators[rand(0...1)]
|
||||
job.operator = operator if status != :open
|
||||
@@ -154,9 +154,9 @@ end
|
||||
job = Job.new(privacy_policy: true)
|
||||
job.pdf = File.open(Rails.root.join('db/pdfs/', pdf))
|
||||
student = students[rand(0...9)]
|
||||
job.costumer = [ student, student, false ].sample
|
||||
job.costumer_firstname = student.firstname
|
||||
job.costumer_lastname = student.lastname
|
||||
job.customer = [ student, student, false ].sample
|
||||
job.customer_firstname = student.firstname
|
||||
job.customer_lastname = student.lastname
|
||||
job.creator = operators[rand(0...1)]
|
||||
job.created_by_operator = true
|
||||
job.inspect
|
||||
|
||||
Reference in New Issue
Block a user