need help for rake db:migrate

Added by steve Bourne about 1 month ago

i am trying to develop redmine on windows 7
i have installed railsinstaller,mysql5.7,etc.

i use rubymine to run the whole project. i run debug development:redmine and there is no error. but when i enter localhsot:3000, i found that there is no database which named "redmine_development". so i execute the command " rake db:migrate", but there is some error.

here is the log , can anybody help me? thanks

D:\code\mygithub\redmine>set RAILS_ENV=development

D:\code\mygithub\redmine>rake db:migrate
62 InsertBuiltinRoles: migrating =========================================
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

undefined local variable or method `saved_changes' for #<Role:0x5d49488>
D:/code/mygithub/redmine/lib/redmine/acts/positioned.rb:101:in `position_scope_c
hanged?'
D:/code/mygithub/redmine/lib/redmine/acts/positioned.rb:77:in `update_position'
D:/code/mygithub/redmine/db/migrate/062_insert_builtin_roles.rb:6:in `up'

Caused by:
NameError: undefined local variable or method `saved_changes' for #<Role:0x5d494
88>
D:/code/mygithub/redmine/lib/redmine/acts/positioned.rb:101:in `position_scope_c
hanged?'
D:/code/mygithub/redmine/lib/redmine/acts/positioned.rb:77:in `update_position'
D:/code/mygithub/redmine/db/migrate/062_insert_builtin_roles.rb:6:in `up'
Tasks: TOP => db:migrate