Create a seed user for the develoment environment #152
@ -67,4 +67,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)) }
|
'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',
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user