Eror:正在等待迁移。要解决此问题,请运行:bin / rake db:migrate RAILS_ENV = development

时间:2015-05-22 05:10:12

标签: mysql ruby-on-rails ruby

我正在使用:

rails 4.2.1;

ruby​​ 2.1.5p273(2014-11-13修订版48405)[i386-mingw32];

spree 3.0.1

数据库:MySQL

安装狂欢成功之后,我让它运行,然后出现上面的错误。我用过:bundle exec rake test:prepare,bundle exec rake db:migrate it show enter image description here

当我运行此命令时:bundle exec rake db:migrate:reset,出现错误: enter image description here

当我安装Spree并使用SQLite时,它运行正常。但我不想在我的Web应用程序中使用SQLite数据库。

更新

20150522034041_rename_permalink_to_slug_for_products.spree.rb file

# This migration comes from spree (originally 20140106224208)
class RenamePermalinkToSlugForProducts < ActiveRecord::Migration
  def change
    rename_column :spree_products, :permalink, :slug
  end
end

我不认为迁移文件错误,因为它在SQLite上运行良好

0 个答案:

没有答案