From 93d907cdc82b063967b319d30a8ab0045b168767 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sat, 7 Dec 2024 23:43:21 +0100 Subject: [PATCH] Remove leftovers of the date attribute --- db/seeds.rb | 2 +- spec/factories/weddings.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 9d93073..eb45757 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -11,7 +11,7 @@ ActsAsTenant.without_tenant do Wedding.delete_all end -wedding = Wedding.create!(slug: :default, date: 1.year.from_now) +wedding = Wedding.create!(slug: :default) ActsAsTenant.with_tenant(wedding) do Expense.create!(name: 'Photographer', amount: 3000, pricing_type: 'fixed') diff --git a/spec/factories/weddings.rb b/spec/factories/weddings.rb index 3680045..5a765a1 100644 --- a/spec/factories/weddings.rb +++ b/spec/factories/weddings.rb @@ -3,6 +3,5 @@ FactoryBot.define do factory :wedding do sequence(:slug) { |i| "wedding-#{i}" } - date { 1.year.from_now } end end