gitlabhq/db/fixtures/development/001_admin.rb
Dmitriy Zaporozhets 03e51c3058 fixtures added
2011-12-04 22:19:49 +02:00

22 lines
396 B
Ruby

unless User.count > 0
admin = User.create(
:email => "admin@local.host",
:name => "Administrator",
:password => "5iveL!fe",
:password_confirmation => "5iveL!fe"
)
admin.projects_limit = 10000
admin.admin = true
admin.save!
if admin.valid?
puts %q[
Administrator account created:
login.........admin@local.host
password......5iveL!fe
]
end
end