Skip to content

Commit

Permalink
Fix db/seeds returning nil business plan
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 committed Jul 13, 2023
1 parent 302f03f commit cdf737f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit cdf737f

Please sign in to comment.