@@ -16,7 +16,8 | |||||
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17 |
|
17 | |||
18 | class Setup < ActiveRecord::Migration |
|
18 | class Setup < ActiveRecord::Migration | |
19 |
|
19 | |||
|
20 | class User < ActiveRecord::Base; end | |||
20 | # model removed |
|
21 | # model removed | |
21 | class Permission < ActiveRecord::Base; end |
|
22 | class Permission < ActiveRecord::Base; end | |
22 |
|
23 | |||
@@ -284,13 +285,15 class Setup < ActiveRecord::Migration | |||||
284 | Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322 |
|
285 | Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322 | |
285 |
|
286 | |||
286 | # create default administrator account |
|
287 | # create default administrator account | |
287 | user = User.create :firstname => "Redmine", :lastname => "Admin", :mail => "admin@somenet.foo", :mail_notification => true, :language => "en" |
|
288 | user = User.create :login => "admin", | |
288 | user.login = "admin" |
|
289 | :hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997", | |
289 | user.password = "admin" |
|
290 | :admin => true, | |
290 | user.admin = true |
|
291 | :firstname => "Redmine", | |
291 | user.save |
|
292 | :lastname => "Admin", | |
292 |
|
293 | :mail => "admin@somenet.foo", | ||
293 |
|
294 | :mail_notification => true, | ||
|
295 | :language => "en", | |||
|
296 | :status => 1 | |||
294 | end |
|
297 | end | |
295 |
|
298 | |||
296 | def self.down |
|
299 | def self.down |
General Comments 0
You need to be logged in to leave comments.
Login now