dawarich/db/seeds.rb
2024-11-29 15:36:18 +01:00

14 lines
263 B
Ruby

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