【发布时间】:2014-01-12 02:35:56
【问题描述】:
我正在使用 MySQL Server 5.7(64 位)、MySQL 连接器 C 6.1 6.1.2(32 位)、Ruby 1.9.3p392(2013)在 Windows 7(64 位)上通过 Lynda.com 完成教程 Ruby on Rails 3 Essential Training -02-22) [i386-mingw32] 和 Rails 3.2.12。
在培训中,我在“数据库和迁移”部分尝试将我在 MySQL 中创建的数据库与我的 Rails 项目同步,但是我遇到了中止消息。
讲师要求我的班级通过命令提示符打开我们的 rails 项目并执行 Rake 以使用以下代码构建“schema.rb”:
这就是我现在运行“db:schema:dump”时的意思
C:\Sites\todo>rake db:schema:dump rake aborted!
You have already activated rake 10.1.1, but your Gemfile requires rake 10.0.3.
Using bundle exec may solve this.
C:/Sites/todo/config/boot.rb:6:in'`
C:/Sites/todo/config/application.rb:1:in'`
C:/Sites/todo/Rakefile:4:in'`
(See full trace by running task with --trace)
如何获得 Gemfile 所需的 rake?
【问题讨论】:
-
之前尝试
bundle install
标签: mysql ruby-on-rails ruby ruby-on-rails-3 mysql-5.7