I am very new in Rails. after I created a new rails project.
rails new test project
I ran
rake db:create
In
try
gem install bundler bundle install
gem install bundler
bundle install
to install the gems needed.
rake tasks will fail if you do not have the gems necessary for the rails app.