Create mascot account in seed (#14167)

This commit is contained in:
Takuma 2021-07-08 22:24:13 +09:00 committed by GitHub
parent 3e425344ef
commit 499a283bba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,6 +153,8 @@ seeder.create_if_doesnt_exist(User, "email", "admin@forem.local") do
user.add_role(:tech_admin)
end
Users::CreateMascotAccount.call unless Settings::General.mascot_user_id
##############################################################################
seeder.create_if_none(Tag) do