@@ -288,14 +288,17 class Setup < ActiveRecord::Migration | |||||
288 | Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322 |
|
288 | Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322 | |
289 |
|
289 | |||
290 | # create default administrator account |
|
290 | # create default administrator account | |
291 |
user = User. |
|
291 | user = User.new :firstname => "Redmine", | |
292 | :hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997", |
|
292 | :lastname => "Admin", | |
293 |
|
|
293 | :mail => "admin@example.net", | |
294 |
|
|
294 | :mail_notification => 'all', | |
295 |
|
|
295 | :status => 1 | |
296 | :mail => "admin@example.net", |
|
296 | user.login = 'admin' | |
297 | :mail_notification => true, |
|
297 | user.hashed_password = "d033e22ae348aeb5660fc2140aec35850c4da997" | |
298 | :status => 1 |
|
298 | user.admin = true | |
|
299 | user.save | |||
|
300 | ||||
|
301 | ||||
299 | end |
|
302 | end | |
300 |
|
303 | |||
301 | def self.down |
|
304 | def self.down |
General Comments 0
You need to be logged in to leave comments.
Login now