spree/spree — Issue #1236: Renamed Calculators Causing Issues
Author: digitalWestie
Created: 2012-03-06 13:48:16+00:00
State: open

I'm upgrading my application from v0.7 to 1. Since PriceBucket and SalesTax have been renamed I'm getting some errors.

What is the correct way to go about renaming these?

I was going to write a rake task but it seems I can't perform any db operations. For example if I run:

Spree::Calculator.all

I get:

ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'Spree::Calculator::SalesTax'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Spree::Calculator.inheritance_column to use another column for that information.