2013-04-05 08:42:07 -04:00
|
|
|
Gitlab::Seeder.quiet do
|
2013-06-20 06:14:23 -04:00
|
|
|
Group.all.each do |group|
|
|
|
|
User.all.sample(4).each do |user|
|
2014-09-18 13:19:11 -04:00
|
|
|
if group.add_users([user.id], Gitlab::Access.values.sample)
|
2013-06-20 06:14:23 -04:00
|
|
|
print '.'
|
|
|
|
else
|
|
|
|
print 'F'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2013-04-05 08:42:07 -04:00
|
|
|
|
2013-06-20 06:14:23 -04:00
|
|
|
Project.all.each do |project|
|
|
|
|
User.all.sample(4).each do |user|
|
2014-09-18 13:19:11 -04:00
|
|
|
if project.team << [user, Gitlab::Access.values.sample]
|
2013-06-20 06:14:23 -04:00
|
|
|
print '.'
|
|
|
|
else
|
|
|
|
print 'F'
|
|
|
|
end
|
2013-04-05 08:42:07 -04:00
|
|
|
end
|
2012-12-26 22:14:05 -05:00
|
|
|
end
|
|
|
|
end
|