运行命令时
rake db: create
我收到以下错误:
/home/supranimbus12/.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.4.2/bin/rake:31:in `require': cannot load such file -- rake (LoadError)
from /home/supranimbus12/.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.4.2/bin/rake:31:in `<top (required)>'
from /home/supranimbus12/.rvm/gems/ruby-2.3.0@global/bin/rake:23:in `load'
from /home/supranimbus12/.rvm/gems/ruby-2.3.0@global/bin/rake:23:in `<main>'
from /home/supranimbus12/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `eval'
from /home/supranimbus12/.rvm/gems/ruby-2.3.0@global/bin/ruby_executable_hooks:15:in `<main>'
答案 0 :(得分:0)
bundle install
bundle exec rake db:create
bundle exec rake db:migrate