当我执行命令捆绑exec rake db:create时,我得到一个错误rake aborted! NotImplementedError

时间:2014-03-12 11:12:58

标签: ruby-on-rails-4

当我执行命令 - bundle exec rake db:create时,我收到错误

C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in C:/Users/Misha/Documents/readers_door)
C:/Ruby193/lib/ruby/1.9.1/rake/file_utils.rb:9: warning: already initialized constant RUBY
C:/Ruby193/lib/ruby/1.9.1/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
rake aborted!
NotImplementedError

当执行bundle exec rake时,我收到错误 -

C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in C:/Users/Misha/Documents/readers_door)
C:/Ruby193/lib/ruby/1.9.1/rake/file_utils.rb:9: warning: already initialized constant RUBY
C:/Ruby193/lib/ruby/1.9.1/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
C:/Users/Misha/Documents/readers_door/db/schema.rb doesn't exist yet. Run `rake db:migrate` to create it, then try again. If you do not intend to use a database, you should instead alter C:/Users/Misha/Documents/readers_door/config/application.rb to limit the frameworks that will be loaded.

1 个答案:

答案 0 :(得分:0)

虽然Rails 4 gem允许使用0.8.7版本的rake,但我认为它确实无效。尝试使用以下代码升级您的rake:bundle update rake然后重新运行您应该运行的命令。

相关问题