db(seed): create user_fixer when seeding db, owner of instance will have to reset password
This commit is contained in:
parent
7a97ef656b
commit
99b31b0cc8
1 changed files with 6 additions and 0 deletions
|
@ -20,3 +20,9 @@ user = User.create!(
|
|||
)
|
||||
user.create_instructeur!
|
||||
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!
|
||||
|
|
Loading…
Reference in a new issue