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
UsersProject.truncate_team(project)
end
def users
members
end
def members
@members ||= fetch_members
end
......
Gitlab::Seeder.quiet do
(2..50).each do |i|
(2..10).each do |i|
begin
User.seed(:id, [{
id: i,
......
......@@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do
project = Project.all.sample
# Random user
user = project.users.sample
user = project.team.users.sample
next unless user
......
......@@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do
project = Project.all.sample
# Random user
user = project.users.sample
user = project.team.users.sample
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