Update to version 1.0.0

I am trying to upgrade Spree from 0.7.0 to 1.0.0, I added to my gemfile

gem 'spree', '1.0.0'

and mounted the routes by adding this to route.rb

Store::Application.routes.draw do
  mount Spree::Core::Engine, :at => "/"
end

after that I redefined some controllers and the model and I added the Spree :: namespace this way

Spree::ProductsController.class_eval do

now i'm stuck with this error

Mysql2::Error: Table 'store_development.spree_product_groups' doesn't exist: SHOW FIELDS FROM `spree_product_groups`

and this is completely correct, because the table does not exist, but it is called without the spree_ prefix, how can I fix it quickly? I suppose a new column or table has been added to the database, how can I check this? Is there a procedure to improve well-being?

+5
source share
1 answer

Did you launch new migrations for Spree 1.0?

rake railties:install:migrations
rake db:migrate

These migrations that will be copied will rename your tables correctly.

+4

All Articles