gitlab-org--gitlab-foss/db/fixtures/development/06_teams.rb

22 lines
435 B
Ruby
Raw Normal View History

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|
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|
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
end
end