gitlab-org--gitlab-foss/db/fixtures/development/05_users.rb

33 lines
655 B
Ruby
Raw Normal View History

Gitlab::Seeder.quiet do
2015-10-13 10:05:04 -04:00
20.times do |i|
begin
2015-03-08 20:35:49 -04:00
User.create!(
username: FFaker::Internet.user_name,
name: FFaker::Name.name,
email: FFaker::Internet.email,
2015-03-08 20:35:49 -04:00
confirmed_at: DateTime.now,
password: '12345678'
)
print '.'
2015-03-08 20:35:49 -04:00
rescue ActiveRecord::RecordInvalid
print 'F'
end
end
2015-10-13 10:05:04 -04:00
5.times do |i|
begin
2015-03-08 20:35:49 -04:00
User.create!(
username: "user#{i}",
name: "User #{i}",
email: "user#{i}@example.com",
confirmed_at: DateTime.now,
password: '12345678'
)
print '.'
2015-03-08 20:35:49 -04:00
rescue ActiveRecord::RecordInvalid
print 'F'
end
end
end