summaryrefslogtreecommitdiff
path: root/db/fixtures/development/06_teams.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/development/06_teams.rb')
-rw-r--r--db/fixtures/development/06_teams.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/fixtures/development/06_teams.rb b/db/fixtures/development/06_teams.rb
index 86e0a38aae1..b218f4e71fd 100644
--- a/db/fixtures/development/06_teams.rb
+++ b/db/fixtures/development/06_teams.rb
@@ -14,7 +14,7 @@ Sidekiq::Testing.inline! do
Project.all.each do |project|
User.all.sample(4).each do |user|
- if project.team << [user, Gitlab::Access.values.sample]
+ if project.add_role(user, Gitlab::Access.sym_options.keys.sample)
print '.'
else
print 'F'