From cdf737f71af6a2fa6cb0a701d5f89ce139d81dd2 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Tue, 6 Jun 2023 11:32:41 +0200 Subject: [PATCH] Fix db/seeds returning nil business plan --- db/seeds.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index d6ecf4594..d09bffd46 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -6,9 +6,7 @@ organization = Organization.create_or_find_by(name: '100eyes', upgrade_discount: 10, - business_plan: BusinessPlan.where.not( - valid_from: nil, valid_until: nil - ).first) + business_plan: BusinessPlan.first) admin = User.create_or_find_by(email: 'redaktion@tactile.news', first_name: 'Dennis', last_name: 'Schröder', password: password, admin: true, otp_secret_key: otp_secret_key) user = User.create_or_find_by(email: 'contact-person@example_organization.org', first_name: 'ConactFor', last_name: 'Organization',