0

我刚刚从 3.2.8 升级到 Linux Mint 14 和 Rails 3.2.9。现在我在运行时收到此错误rake db:create

rake aborted!
undefined method `values_at' for "MySQL.  Versions 4.1 and 5.0 are recommended.":String
Tasks: TOP => db:create

我的 Gemfile 看起来像这样:

source 'https://rubygems.org'

gem 'rails', '3.2.9'
gem 'execjs'
gem 'therubyracer'


# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'mysql2'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'
4

1 回答 1

0

您是否可能忘记更新某些依赖项?尝试运行:

$ bundle outdated

并检查您是否需要更新其他宝石....

于 2012-12-03T04:15:37.627 回答