dawarich/db/seeds.rb
2024-07-23 00:40:48 +02:00

12 lines
236 B
Ruby

# frozen_string_literal: true
return if User.any?
User.create!(
email: 'user@domain.com',
password: 'password',
password_confirmation: 'password',
admin: true
)
puts "User created: #{User.first.email} / password: 'password'"