2011-10-08 17:36:38 -04:00
|
|
|
admin = User.create(
|
2012-11-23 13:11:09 -05:00
|
|
|
email: "admin@local.host",
|
|
|
|
name: "Administrator",
|
|
|
|
username: 'root',
|
|
|
|
password: "5iveL!fe",
|
2013-06-13 13:06:33 -04:00
|
|
|
password_confirmation: "5iveL!fe",
|
2013-08-26 06:06:41 -04:00
|
|
|
password_expires_at: Time.now,
|
|
|
|
theme_id: Gitlab::Theme::MARS
|
|
|
|
|
2011-10-08 17:36:38 -04:00
|
|
|
)
|
|
|
|
|
2011-10-09 14:15:01 -04:00
|
|
|
admin.projects_limit = 10000
|
2011-10-08 17:36:38 -04:00
|
|
|
admin.admin = true
|
|
|
|
admin.save!
|
2013-10-15 05:23:25 -04:00
|
|
|
admin.confirm!
|
2011-10-21 13:58:04 -04:00
|
|
|
|
|
|
|
if admin.valid?
|
|
|
|
puts %q[
|
|
|
|
Administrator account created:
|
|
|
|
|
|
|
|
login.........admin@local.host
|
|
|
|
password......5iveL!fe
|
|
|
|
]
|
|
|
|
end
|