summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-18 20:19:11 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-18 20:19:11 +0300
commite4bc359841d4254ad46a9e4c9a602cc25b017db1 (patch)
tree7483bde53707aa5b7d03aa5f79051f5d8f983644 /db
parent4a21db82ec8edfc79a1b16d5d28bdd7e82085234 (diff)
downloadgitlab-ce-e4bc359841d4254ad46a9e4c9a602cc25b017db1.tar.gz
Fix dev fixtures
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/06_teams.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/development/06_teams.rb b/db/fixtures/development/06_teams.rb
index dfbe75fd20e..3e8cdcd67b4 100644
--- a/db/fixtures/development/06_teams.rb
+++ b/db/fixtures/development/06_teams.rb
@@ -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'