Don't know how to build task 'db:migrate' w/ Rails 3.2.0.rc2

后端 未结 2 2057
日久生厌
日久生厌 2021-02-15 01:29

I\'m attempting to upgrade my Rails application to 3.2.0.rc2 but When I try to do a rake db:migrate --trace I\'m now getting the following error message:

         


        
相关标签:
2条回答
  • 2021-02-15 01:51

    There is something very funky going on with your gem versions. If you look at your gemfile.lock it's using the 3.2.rc2 versions of railties, activesupport and activemodel but the other versions are all over the place ( ar is 1.6, action mailer is 0.6.1 etc).

    I'm not sure how you got into this state, but I'd try either bundle update or deleting Gemfile.lock and then running bundle install (in theory those 2 are equivalent) and specifying the precise version of rails you want (especially as you're after a prerelease version of rails.)

    0 讨论(0)
  • 2021-02-15 02:00

    From the command rake db:migrate --trace, the rake tasks are not loaded. , amd you couldn't get the path scheme right. and running rake -T locally list db:migrate as one of the rake tasks? If not, your rails is misconfigured... well, I didn't worked with rails 3.2.0rc2 ,but I googled and found some links . Please refer links below this would help you..

    Rake db:migrate error don't know how to build task

    Don't know how to build rake db:migrate on Ubuntu natty

    Problem running rake db:migrate

    Let me know how it worked !

    Thanks Frederick, Its interesting post..

    0 讨论(0)
提交回复
热议问题