Create a seed user for the develoment environment

This commit is contained in:
Manuel Bustillo 2024-11-30 19:19:22 +01:00
parent 9e222f59be
commit cf6ca5aa17

View File

@ -71,4 +71,11 @@ ActiveJob.perform_all_later(3.times.map { TableSimulatorJob.new })
'red'.paint.palette.triad(as: :hex).zip(Group.roots).each { |(color, group)| group.update!(color: color.paint.desaturate(40)) }
Group.roots.each(&:colorize_children)
Group.roots.each(&:colorize_children)
User.create!(
email: 'development@example.com',
confirmed_at: Time.zone.now,
password: 'supersecretpassword',
password_confirmation: 'supersecretpassword',
)