From 155278bb7e499cbbd41cb2a274316f6b9df7913d Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Thu, 11 Jul 2024 23:25:29 +0200 Subject: [PATCH] Modify seeds file to make sure every guest is part of a group --- db/seeds.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 007d0e5..94122ff 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -28,7 +28,10 @@ Expense.create!(name: 'Transportation', amount: 3000, pricing_type: 'fixed') Expense.create!(name: 'Invitations', amount: 200, pricing_type: 'fixed') Expense.create!(name: 'Cake', amount: 500, pricing_type: 'fixed') +<<<<<<< HEAD +======= +>>>>>>> 8fd0b7c (Modify seeds file to make sure every guest is part of a group) samples = { close_family: 10, family_1_group_a: 5, @@ -49,9 +52,9 @@ end 300.times do guest = Guest.create!(first_name: Faker::Name.first_name, - last_name: Faker::Name.last_name, - email: Faker::Internet.email, - phone: Faker::PhoneNumber.cell_phone) + last_name: Faker::Name.last_name, + email: Faker::Internet.email, + phone: Faker::PhoneNumber.cell_phone) guest.affinity_group_list.add(samples.sample) guest.save!