Commit e4bc3598 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix dev fixtures

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 4a21db82
Gitlab::Seeder.quiet do Gitlab::Seeder.quiet do
Group.all.each do |group| Group.all.each do |group|
User.all.sample(4).each do |user| User.all.sample(4).each do |user|
if group.add_users([user.id], UsersGroup.group_access_roles.values.sample) if group.add_users([user.id], Gitlab::Access.values.sample)
print '.' print '.'
else else
print 'F' print 'F'
...@@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do ...@@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do
Project.all.each do |project| Project.all.each do |project|
User.all.sample(4).each do |user| User.all.sample(4).each do |user|
if project.team << [user, UsersProject.access_roles.values.sample] if project.team << [user, Gitlab::Access.values.sample]
print '.' print '.'
else else
print 'F' print 'F'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment