db(seed): create user_fixer when seeding db, owner of instance will have to reset password

This commit is contained in:
mfo 2024-09-06 06:42:49 +02:00
parent 7a97ef656b
commit 99b31b0cc8
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -20,3 +20,9 @@ user = User.create!(
) )
user.create_instructeur! user.create_instructeur!
user.create_administrateur! user.create_administrateur!
user_fixer User.create(email: ENV.fetch('DEFAULT_INSTRUCTEUR_EMAIL') { CONTACT_EMAIL },
password: Random.srand,
confirmed_at: Time.zone.now,
email_verified_at: Time.zone.now)
user_fixer.create_instructeur!