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