001_admin.rb 328 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
1 2 3 4 5 6 7
admin = User.create(
  :email => "admin@local.host",
  :name => "Administrator",
  :password => "5iveL!fe",
  :password_confirmation => "5iveL!fe"
)

Valera Sizov's avatar
Valera Sizov committed
8
admin.projects_limit = 10000
gitlabhq's avatar
gitlabhq committed
9 10
admin.admin = true
admin.save!
gitlabhq's avatar
gitlabhq committed
11 12 13 14 15 16 17 18 19

if admin.valid?
puts %q[
Administrator account created:

login.........admin@local.host
password......5iveL!fe
]
end