2012-12-26 22:14:05 -05:00
|
|
|
Gitlab::Seeder.quiet do
|
2014-08-11 10:55:31 -04:00
|
|
|
(2..20).each do |i|
|
2012-12-26 22:14:05 -05:00
|
|
|
begin
|
|
|
|
User.seed(:id, [{
|
|
|
|
id: i,
|
|
|
|
username: Faker::Internet.user_name,
|
|
|
|
name: Faker::Name.name,
|
|
|
|
email: Faker::Internet.email,
|
2014-03-15 05:39:35 -04:00
|
|
|
confirmed_at: DateTime.now
|
2012-12-26 22:14:05 -05:00
|
|
|
}])
|
|
|
|
print '.'
|
|
|
|
rescue ActiveRecord::RecordNotSaved
|
|
|
|
print 'F'
|
|
|
|
end
|
|
|
|
end
|
2014-06-26 18:04:10 -04:00
|
|
|
|
|
|
|
(1..5).each do |i|
|
|
|
|
begin
|
2014-09-29 07:26:09 -04:00
|
|
|
User.seed do |s|
|
|
|
|
s.username = "user#{i}"
|
|
|
|
s.name = "User #{i}"
|
|
|
|
s.email = "user#{i}@example.com"
|
|
|
|
s.confirmed_at = DateTime.now
|
|
|
|
s.password = '12345678'
|
|
|
|
end
|
2014-06-26 18:04:10 -04:00
|
|
|
print '.'
|
|
|
|
rescue ActiveRecord::RecordNotSaved
|
|
|
|
print 'F'
|
|
|
|
end
|
|
|
|
end
|
2012-12-26 22:14:05 -05:00
|
|
|
end
|