2012-12-26 22:14:05 -05:00
|
|
|
Gitlab::Seeder.quiet do
|
2015-10-13 10:05:04 -04:00
|
|
|
20.times do |i|
|
2012-12-26 22:14:05 -05:00
|
|
|
begin
|
2015-03-08 20:35:49 -04:00
|
|
|
User.create!(
|
2015-05-20 19:22:00 -04:00
|
|
|
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'
|
|
|
|
)
|
|
|
|
|
2012-12-26 22:14:05 -05:00
|
|
|
print '.'
|
2015-03-08 20:35:49 -04:00
|
|
|
rescue ActiveRecord::RecordInvalid
|
2012-12-26 22:14:05 -05:00
|
|
|
print 'F'
|
|
|
|
end
|
|
|
|
end
|
2014-06-26 18:04:10 -04:00
|
|
|
|
2015-10-13 10:05:04 -04:00
|
|
|
5.times do |i|
|
2014-06-26 18:04:10 -04:00
|
|
|
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'
|
|
|
|
)
|
2014-06-26 18:04:10 -04:00
|
|
|
print '.'
|
2015-03-08 20:35:49 -04:00
|
|
|
rescue ActiveRecord::RecordInvalid
|
2014-06-26 18:04:10 -04:00
|
|
|
print 'F'
|
|
|
|
end
|
|
|
|
end
|
2012-12-26 22:14:05 -05:00
|
|
|
end
|