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