简体   繁体   English

找不到表格'spree_pages'

[英]Could not find table 'spree_pages'

I am trying to get the spree-static-content up and running. 我正在尝试启动并运行spree-static-content I am currently using: 我目前正在使用:

  1. gem 'rails', '4.2.3'
  2. gem 'spree', '3.0.4'
  3. gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
  4. gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
  5. gem 'spree_editor', github: 'spree-contrib/spree_editor', branch: '3-0-stable'
  6. gem 'spree_static_content', github: 'spree-contrib/spree_static_content', branch: '3-0-stable'

However, when I start running my rails server, I will receive the following error: 但是,当我开始运行Rails服务器时,将收到以下错误:

ActiveRecord::StatementInvalid in Spree::StaticContentController#show
Could not find table 'spree_pages'
raise(ActiveRecord::StatementInvalid, \
  "Could not find table '#{table_name}'") if structure.empty?

宝石的自述文件

bundle exec rails g spree_static_content:install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM