seeds.rb: Add registered_at to admin user to fix setup seed issue. (#16377)

This commit is contained in:
Ryan Palo 2022-01-31 20:27:33 -08:00 committed by GitHub
parent 8c697313df
commit 09245d41d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,6 +190,7 @@ seeder.create_if_doesnt_exist(User, "email", "admin@forem.local") do
username: "Admin_McAdmin",
profile_image: File.open(Rails.root.join("app/assets/images/#{rand(1..40)}.png")),
confirmed_at: Time.current,
registered_at: Time.current,
password: "password",
password_confirmation: "password",
)