6 lines
164 B
Ruby
6 lines
164 B
Ruby
unless User.find_by(email: 'admin@example.com').present?
|
|
puts "Creating admin"
|
|
User.create!(email: "admin@example.com", password: "admin123", admin: true)
|
|
end
|
|
|