BigW Consortium Gitlab

Commit b55c8c41 by Sean McGivern

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
parents 977e6849 8ad1573f
require './spec/support/sidekiq' require './spec/support/sidekiq'
Gitlab::Seeder.quiet do Gitlab::Seeder.quiet do
User.seed do |s| User.create!(
s.id = 1 name: 'Administrator',
s.name = 'Administrator' email: 'admin@example.com',
s.email = 'admin@example.com' username: 'root',
s.notification_email = 'admin@example.com' password: '5iveL!fe',
s.username = 'root' admin: true,
s.password = '5iveL!fe' confirmed_at: DateTime.now
s.admin = true )
s.confirmed_at = DateTime.now
end print '.'
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment