提交 b55c8c41 编写于 作者: S 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
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册