# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # uncomment after Role migration has been create u = RaffleV1::User.new( username: "admin", email: "admin@example.com", password: "1234", password_confirmation: "1234", admin: true ) u.skip_confirmation! u.save! # Test user accounts (1..5).each do |i| u = RaffleV1::User.new( username: "user#{i}", email: "user#{i}@example.com", password: "1234", password_confirmation: "1234" ) u.skip_confirmation! u.save! puts "#{i} test users created..." if (i % 5 == 0) end