# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class Setup < ActiveRecord::Migration
-
+
+ class User < ActiveRecord::Base; end
# model removed
class Permission < ActiveRecord::Base; end
Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322\r
\r
# create default administrator account\r
- user = User.create :firstname => "Redmine", :lastname => "Admin", :mail => "admin@somenet.foo", :mail_notification => true, :language => "en"
- user.login = "admin"
- user.password = "admin"\r
- user.admin = true\r
- user.save\r
- \r
- \r
+ user = User.create :login => "admin",
+ :hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997",
+ :admin => true,
+ :firstname => "Redmine",
+ :lastname => "Admin",
+ :mail => "admin@somenet.foo",
+ :mail_notification => true,
+ :language => "en",
+ :status => 1
end
def self.down\r