##// END OF EJS Templates
Fixed #1545: migration on fresh install fails (broken by r1592)....
Jean-Philippe Lang -
r1581:fa88a592fd19
parent child
Show More
@@ -17,6 +17,7
17 17
18 18 class Setup < ActiveRecord::Migration
19 19
20 class User < ActiveRecord::Base; end
20 21 # model removed
21 22 class Permission < ActiveRecord::Base; end
22 23
@@ -284,13 +285,15 class Setup < ActiveRecord::Migration
284 285 Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322
285 286
286 287 # create default administrator account
287 user = User.create :firstname => "Redmine", :lastname => "Admin", :mail => "admin@somenet.foo", :mail_notification => true, :language => "en"
288 user.login = "admin"
289 user.password = "admin"
290 user.admin = true
291 user.save
292
293
288 user = User.create :login => "admin",
289 :hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997",
290 :admin => true,
291 :firstname => "Redmine",
292 :lastname => "Admin",
293 :mail => "admin@somenet.foo",
294 :mail_notification => true,
295 :language => "en",
296 :status => 1
294 297 end
295 298
296 299 def self.down
General Comments 0
You need to be logged in to leave comments. Login now