I am very new in Rails. after I created a new rails project.
rails new test project
I ran
rake db:create
In
I had the same thing and here's what I found: You probably have more than one version of rake installed (type gem list
to see), and your project is specifying you must use the older version of rake.
If you do, then the default rake is the newer one.
If you are in your project directory, and your project's Gemfile specifies the older version of rake, and your type rake db:migrate then the error message is telling you that the 'new' version of rake is not the one you specified in Gemfile, so run bundle exec rake db:migrate
so bundler can pick the correct version of rake for you.