Sha256: 865581ddbc2cc15e57e8d930ffcce430891717c798418ef401820edd2790c016

Contents?: true

Size: 338 Bytes

Versions: 15

Compression:

Stored size: 338 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_core-1.2.5 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.1.6 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.1.5 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.2.4 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.0.7 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.2.3 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.2.2 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.1.4 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.2.0 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.2.0.rc2 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.2.0.rc1 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.1.3 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.0.6 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.1.2 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb
spree_core-1.1.2.rc1 db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb