diff options
Diffstat (limited to 'lib/tasks/gitlab/seed/group_seed.rake')
-rw-r--r-- | lib/tasks/gitlab/seed/group_seed.rake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/seed/group_seed.rake b/lib/tasks/gitlab/seed/group_seed.rake index 4f5df7841e2..cc9180d56a3 100644 --- a/lib/tasks/gitlab/seed/group_seed.rake +++ b/lib/tasks/gitlab/seed/group_seed.rake @@ -120,13 +120,17 @@ class GroupSeeder end def create_user + # rubocop:disable Style/SymbolProc -- Incorrect rubocop advice. User.create!( username: FFaker::Internet.user_name, name: FFaker::Name.name, email: FFaker::Internet.email, confirmed_at: DateTime.now, password: Devise.friendly_token - ) + ) do |user| + user.assign_personal_namespace + end + # rubocop:enable Style/SymbolProc end def create_member(user_id, group_id) |