Sha256: da3a2f75d06ad7756b4426834b284774184e2eb2969261644bcef7e3c7db291c

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

# Generated with RailsBricks
# Initial seed file to use with Devise User Model

# Temporary admin account
u = User.new(
    email: "admin@example.com",
    password: "1234",
    admin: true
)
u.skip_confirmation!
u.save!

# Test user accounts
(1..50).each do |i|
  u = User.new(
      email: "user#{i}@example.com",
      password: "1234"
  )
  u.skip_confirmation!
  u.save!

  puts "#{i} test users created..." if (i % 5 == 0)

end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
railsbricks-3.7.0 lib/railsbricks/assets/seeds/devise_email/seeds_test_users.rb
railsbricks-reloaded-3.2.1 lib/railsbricks/assets/seeds/devise_email/seeds_test_users.rb
phoenixbricks-3.2.7 lib/railsbricks/assets/seeds/devise_email/seeds_test_users.rb
phoenixbricks-3.2.6 lib/railsbricks/assets/seeds/devise_email/seeds_test_users.rb