2011-10-13 03:00:00 +02:00
|
|
|
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!
|
2011-10-22 15:07:26 +02:00
|
|
|
|
|
|
|
if admin.valid?
|
|
|
|
puts %q[
|
|
|
|
Administrator account created:
|
|
|
|
|
|
|
|
login.........admin@local.host
|
|
|
|
password......5iveL!fe
|
|
|
|
]
|
|
|
|
end
|