gitlabhq/db/fixtures/development/06_teams.rb
2013-02-09 15:13:56 +02:00

22 lines
404 B
Ruby

Gitlab::Seeder.quiet do
(1..300).each do |i|
# Random Project
project = Project.scoped.sample
# Random user
user = User.not_in_project(project).sample
next unless user
UsersProject.seed(:id, [{
id: i,
project_id: project.id,
user_id: user.id,
project_access: UsersProject.access_roles.values.sample
}])
print('.')
end
end
puts "OK".green