##// END OF EJS Templates
Default admin user may not be crated in Redmine 3.0 (#18804)....
Jean-Philippe Lang -
r13586:84d8453cf03e
parent child
Show More
@@ -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.create :login => "admin",
291 user = User.new :firstname => "Redmine",
292 :hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997",
293 :admin => true,
294 :firstname => "Redmine",
295 :lastname => "Admin",
292 :lastname => "Admin",
296 :mail => "admin@example.net",
293 :mail => "admin@example.net",
297 :mail_notification => true,
294 :mail_notification => 'all',
298 :status => 1
295 :status => 1
296 user.login = 'admin'
297 user.hashed_password = "d033e22ae348aeb5660fc2140aec35850c4da997"
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