简体   繁体   中英

Could not find table 'spree_pages'

I am trying to get the spree-static-content up and running. 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:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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