summaryrefslogtreecommitdiff
path: root/db/fixtures/development/02_users.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/development/02_users.rb')
-rw-r--r--db/fixtures/development/02_users.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/fixtures/development/02_users.rb b/db/fixtures/development/02_users.rb
index 7916cdd5fb1..76a00c18649 100644
--- a/db/fixtures/development/02_users.rb
+++ b/db/fixtures/development/02_users.rb
@@ -41,11 +41,12 @@ class Gitlab::Seeder::Users
relation = User.where(admin: false)
Gitlab::Seeder.with_mass_insert(relation.count, Namespace) do
ActiveRecord::Base.connection.execute <<~SQL
- INSERT INTO namespaces (name, path, owner_id)
+ INSERT INTO namespaces (name, path, owner_id, type)
SELECT
username,
username,
- id
+ id,
+ 'User'
FROM users WHERE NOT admin
SQL
end