gitlab-org--gitlab-foss/db/fixtures/production/001_admin.rb
Dmitriy Zaporozhets f4733b0026 Confirm seed users
2013-10-15 12:23:25 +03:00

24 lines
418 B
Ruby

admin = User.create(
email: "admin@local.host",
name: "Administrator",
username: 'root',
password: "5iveL!fe",
password_confirmation: "5iveL!fe",
password_expires_at: Time.now,
theme_id: Gitlab::Theme::MARS
)
admin.projects_limit = 10000
admin.admin = true
admin.save!
admin.confirm!
if admin.valid?
puts %q[
Administrator account created:
login.........admin@local.host
password......5iveL!fe
]
end