dawarich/db/seeds.rb

15 lines
263 B
Ruby
Raw Normal View History

# frozen_string_literal: true
return if User.any?
2024-11-29 09:36:18 -05:00
puts 'Creating user...'
User.create!(
2024-11-29 09:36:18 -05:00
email: 'demo@dawarich.app',
password: 'password',
password_confirmation: 'password',
admin: true
)
puts "User created: #{User.first.email} / password: 'password'"