Project -> update repo only on create and destroy. Fixtures Updated with namespaces. Fixed moving repo
This commit is contained in:
parent
cc52eed981
commit
70bf7f6e19
11 changed files with 45 additions and 31 deletions
|
@ -1,22 +1,11 @@
|
|||
unless User.count > 0
|
||||
admin = User.create(
|
||||
email: "admin@local.host",
|
||||
User.seed(:id, [
|
||||
{
|
||||
id: 1,
|
||||
name: "Administrator",
|
||||
email: "admin@local.host",
|
||||
username: 'root',
|
||||
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
|
||||
password_confirmation: "5iveL!fe",
|
||||
admin: true,
|
||||
}
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue