diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-04-10 15:00:06 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-04-10 15:00:06 +0200 |
commit | 8ad1573f85a699564b202aeb300d269798f99586 (patch) | |
tree | efc61234c84d69e32bf77e30deeceff5550f73f6 /db/fixtures | |
parent | fb0bb32f25cdda752d340316c52ba9a47b346ade (diff) | |
download | gitlab-ce-8ad1573f85a699564b202aeb300d269798f99586.tar.gz |
Make sure hooks run when seeding admin user
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/01_admin.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/db/fixtures/development/01_admin.rb b/db/fixtures/development/01_admin.rb index dfb50c195c1..1e260236dc5 100644 --- a/db/fixtures/development/01_admin.rb +++ b/db/fixtures/development/01_admin.rb @@ -1,14 +1,14 @@ require './spec/support/sidekiq' Gitlab::Seeder.quiet do - User.seed do |s| - s.id = 1 - s.name = 'Administrator' - s.email = 'admin@example.com' - s.notification_email = 'admin@example.com' - s.username = 'root' - s.password = '5iveL!fe' - s.admin = true - s.confirmed_at = DateTime.now - end + User.create!( + name: 'Administrator', + email: 'admin@example.com', + username: 'root', + password: '5iveL!fe', + admin: true, + confirmed_at: DateTime.now + ) + + print '.' end |