Permalink
Browse files

Add SalesTax to DefaultTax migration for spree_calculators

Fixes #1581

Closes #1585
  • Loading branch information...
Ted Lilley authored and radar committed May 23, 2012
1 parent 2eaac83 commit fa018adcc26e9caf3f1ffa245cda5946cc9d0558
Showing with 9 additions and 0 deletions.
  1. +9 −0 core/db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
@@ -0,0 +1,9 @@
+class ConvertSalesTaxToDefaultTax < ActiveRecord::Migration
+ def up
+ execute "UPDATE spree_calculators SET type='Spree::Calculator::DefaultTax' WHERE type='Spree::Calculator::SalesTax'"
+ end
+
+ def down
+ execute "UPDATE spree_calculators SET type='Spree::Calculator::SalesTax' WHERE type='Spree::Calculator::DefaultTax'"
+ end
+end

0 comments on commit fa018ad

Please sign in to comment.