mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
14 lines
263 B
Ruby
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'"
|