无法 运行 在 Ruby 中进行迁移更新

Cannot run a migration update in Ruby

我正在使用 ruby 并且我去做了一个耙子 db:migrate 我得到了以下错误:

LoadError:无法加载此类文件 -- bundler/setup C:/Sites/raddit/config/boot.rb:4:in <top (required)>' C:/Sites/raddit/config/application.rb:1:in' C:/Sites/raddit/Rakefile:4:在`

然后我 运行 bundle exec rake db:migrate 并得到这个错误

您已请求: sqlite3 >= 0

该包目前已将 sqlite3 锁定在 1.3.11。 尝试 运行宁 bundle update sqlite3

我按说明更新了 sqlite 3,我删除了我的 gemfile,但仍然没有任何效果

这是我的 Gemfile

  source 'https://rubygems.org'

gem 'devise', '~> 3.5', '>= 3.5.2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.8'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.3', '>= 1.3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby


# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0',          group: :doc



# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin]

为了解决这个问题,我刚刚重新安装了捆绑器来执行此操作,只需执行 gem 安装捆绑器,然后 运行 捆绑安装。它将重新安装所有过去的 gems 并且应该可以解决问题。