Remove leftovers of the date attribute

This commit is contained in:
Manuel Bustillo 2024-12-07 23:43:21 +01:00
parent fdef94be9a
commit 93d907cdc8
2 changed files with 1 additions and 2 deletions
db
spec/factories

@ -11,7 +11,7 @@ ActsAsTenant.without_tenant do
Wedding.delete_all Wedding.delete_all
end end
wedding = Wedding.create!(slug: :default, date: 1.year.from_now) wedding = Wedding.create!(slug: :default)
ActsAsTenant.with_tenant(wedding) do ActsAsTenant.with_tenant(wedding) do
Expense.create!(name: 'Photographer', amount: 3000, pricing_type: 'fixed') Expense.create!(name: 'Photographer', amount: 3000, pricing_type: 'fixed')

@ -3,6 +3,5 @@
FactoryBot.define do FactoryBot.define do
factory :wedding do factory :wedding do
sequence(:slug) { |i| "wedding-#{i}" } sequence(:slug) { |i| "wedding-#{i}" }
date { 1.year.from_now }
end end
end end