I am very new in Rails. after I created a new rails project.
rails new test project
I ran
rake db:create
In
Run:
gem install bundler bundle install bundle exec rake db:create
You might want to learn about Bundler.
See the link on "Creating new Rails Project".