Sha256: f1be88ba1fbe62ab242f75f22b49f02f55e459422c947e22ae616f0f62bded93

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

Whodat::User.create!(
    name: "Test User",
    email: "test2@test.com",
    password:  "testtest",
    password_confirmation: "testtest"
   )

  20.times do |n|
    name  = Faker::Name.name
    email = "whodat-#{n+1}@engine.org"
    password = "password"
    Whodat::User.create!(name:  name,
              email: email,
              password:              password,
              password_confirmation: password)
  end

users = Whodat::User.all 

puts "Seed finished"
puts "#{Whodat::User.count} users created"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whodat-1.0.0 spec/dummy/db/seeds.rb