From cf6ca5aa17fb6daecb7cfc434fb9debaba816f94 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sat, 30 Nov 2024 19:19:22 +0100 Subject: [PATCH] Create a seed user for the develoment environment --- db/seeds.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index e7e414d..d1dafe3 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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) \ No newline at end of file +Group.roots.each(&:colorize_children) + +User.create!( + email: 'development@example.com', + confirmed_at: Time.zone.now, + password: 'supersecretpassword', + password_confirmation: 'supersecretpassword', +) \ No newline at end of file