Commit 34f994b7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve dev fixtures

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 1e64333c
...@@ -64,6 +64,10 @@ class ProjectTeam ...@@ -64,6 +64,10 @@ class ProjectTeam
UsersProject.truncate_team(project) UsersProject.truncate_team(project)
end end
def users
members
end
def members def members
@members ||= fetch_members @members ||= fetch_members
end end
......
Gitlab::Seeder.quiet do Gitlab::Seeder.quiet do
(2..50).each do |i| (2..10).each do |i|
begin begin
User.seed(:id, [{ User.seed(:id, [{
id: i, id: i,
......
...@@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do ...@@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do
project = Project.all.sample project = Project.all.sample
# Random user # Random user
user = project.users.sample user = project.team.users.sample
next unless user next unless user
......
...@@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do ...@@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do
project = Project.all.sample project = Project.all.sample
# Random user # Random user
user = project.users.sample user = project.team.users.sample
next unless user next unless user
......
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