Project

General

Profile

« Previous | Next » 

Revision 8b62e7f3

Added by Ohad Levy about 14 years ago

  • ID 8b62e7f33eb3110be1cb260a0d775d654e29a55a

fixes typo in migration, refs #170

View differences:

db/migrate/20100419151910_add_owner_to_hosts.rb
Host.reset_column_information
updated = []
email = SETINGS[:administrator] || "root@" + Facter.domain
email = SETTINGS[:administrator] || "root@" + Facter.domain
owner = User.find_by_mail email
owner ||= User.find_or_create_by_login(:login => "admin", :admin => true, :firstname => "Admin", :lastname => "User", :mail => email)
say "setting default owner for all hosts"

Also available in: Unified diff