From 57fcfa3662cf46a0171cca33a14668e5d12b90e2 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Thu, 11 Jul 2024 20:00:55 +0200 Subject: [PATCH] Configure seed --- db/seeds.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/db/seeds.rb b/db/seeds.rb index 4fbd6ed..15c0a1e 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -7,3 +7,20 @@ # ["Action", "Comedy", "Drama", "Horror"].each do |genre_name| # MovieGenre.find_or_create_by!(name: genre_name) # end + +Expense.delete_all + +Expense.create!(name: 'Photographer', amount: 3000, pricing_type: 'fixed') +Expense.create!(name: 'Country house', amount: 6000, pricing_type: 'fixed') +Expense.create!(name: 'Catering', amount: 200, pricing_type: 'per_person') +Expense.create!(name: 'Flowers', amount: 500, pricing_type: 'fixed') +Expense.create!(name: 'Band', amount: 1000, pricing_type: 'fixed') +Expense.create!(name: 'Wedding planner', amount: 2000, pricing_type: 'fixed') +Expense.create!(name: 'Dress', amount: 1000, pricing_type: 'fixed') +Expense.create!(name: 'Suit', amount: 500, pricing_type: 'fixed') +Expense.create!(name: 'Rings', amount: 1000, pricing_type: 'fixed') +Expense.create!(name: 'Makeup', amount: 200, pricing_type: 'fixed') +Expense.create!(name: 'Hair', amount: 200, pricing_type: 'fixed') +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')