From 99b31b0cc8f178ca26c747163a5a18796caa3ddf Mon Sep 17 00:00:00 2001 From: mfo Date: Fri, 6 Sep 2024 06:42:49 +0200 Subject: [PATCH] db(seed): create user_fixer when seeding db, owner of instance will have to reset password --- db/seeds.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/seeds.rb b/db/seeds.rb index e34c1fd33..3d828de0e 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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!