Got error when run rake db:migrate
Added by minkbear minkbear over 14 years ago
Using redmine version 0.9.4
When i run
sudo rake db:migrate RAILS_ENV=production --trace
I get this error trace:
IssueStartDate is not a class ./db/migrate//005_issue_start_date.rb:1 /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:147:in `load_without_new_constant_marking' /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:147:in `load' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:373:in `load_migration' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:369:in `migration' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:365:in `migrate' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:486:in `migrate' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:562:in `call' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:562:in `ddl_transaction' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:485:in `migrate' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:472:in `each' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:472:in `migrate' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:400:in `up' /usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:383:in `migrate' /usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:116 /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/lib64/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19
Here's my gem list
actionmailer (2.3.5) actionpack (2.3.5) activerecord (2.3.5, 2.3.4) activeresource (2.3.5) activesupport (2.3.5) capistrano (2.5.18) fastthread (1.0.7) gem_plugin (0.2.3) highline (1.5.2) mailfactory (1.4.0) metaid (1.0) mime-types (1.16) mysql (2.8.1) net-scp (1.0.2) net-sftp (2.0.4) net-ssh (2.0.22) net-ssh-gateway (1.0.1) oniguruma (1.1.0) passenger (2.2.11) plist (3.1.0) rack (1.1.0, 1.0.1) rails (2.3.5) rake (0.8.7) rmagick (2.13.1) ruby-openid (2.1.7) ruby-yadis (0.3.4) rubygems-update (1.3.6) sequel (3.11.0) textpow (0.10.1) tzinfo (0.3.20) ultraviolet (0.10.2)
Here's the script/about information
About your application's environment Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.3.6 Rack version 1.0 Rails version 2.3.5 Active Record version 2.3.5 Active Resource version 2.3.5 Action Mailer version 2.3.5 Active Support version 2.3.5 Application root /var/www/htdocs/xxx Environment development Database adapter mysql Database schema version 4