Fix dev fixtures
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
4a21db82ec
commit
e4bc359841
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
Gitlab::Seeder.quiet do
|
||||
Group.all.each do |group|
|
||||
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 '.'
|
||||
else
|
||||
print 'F'
|
||||
|
@ -11,7 +11,7 @@ Gitlab::Seeder.quiet do
|
|||
|
||||
Project.all.each do |project|
|
||||
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 '.'
|
||||
else
|
||||
print 'F'
|
||||
|
|
Loading…
Reference in a new issue