diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-10 16:24:35 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-04-10 16:24:35 +0000 |
commit | b55c8c41b75dc906b444bedd137b325289485f25 (patch) | |
tree | 6489035a2c8f041182d8d2893c948fd353e84445 | |
parent | 977e6849fe0b38f052c1a3297dcd7b52bac9158f (diff) | |
parent | 8ad1573f85a699564b202aeb300d269798f99586 (diff) | |
download | gitlab-ce-b55c8c41b75dc906b444bedd137b325289485f25.tar.gz |
Merge branch 'dm-seed-admin' into 'master'
Make sure hooks run when seeding admin user
Closes gitlab-development-kit#335
See merge request gitlab-org/gitlab-ce!18284
-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 |