Skip to content

Commit

Permalink
Merge pull request #1674 from tactilenews/fix_seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 authored Jul 17, 2023
2 parents 4eecb9a + 3d68e52 commit b08cec5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# frozen_string_literal: true

# rubocop:disable Rails/Output
password = 'go3LS4gvPuuSoq2m0B2n'
otp_secret_key = 'THDBCRGPERS75F7IDDLISUDC6N2YYG3V'
password = ENV.fetch('SEED_USER_PASSWORD', SecureRandom.alphanumeric(20))
otp_secret_key = ENV.fetch('SEED_USER_OTP_SECRET', User.otp_random_secret)

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 b08cec5

Please sign in to comment.