Sha256: 8a4129b1de11945aa7e4a9d158d9bdde000fbbb1e17e0007152ec569fc13700f

Contents?: true

Size: 695 Bytes

Versions: 9

Compression:

Stored size: 695 Bytes

Contents

# This migration comes from spree (originally 20131118050234)
class RenameTaxTotalFields < ActiveRecord::Migration[4.2]
  def change
    rename_column :spree_line_items, :tax_total, :additional_tax_total
    rename_column :spree_shipments, :tax_total, :additional_tax_total
    rename_column :spree_orders, :tax_total, :additional_tax_total

    add_column :spree_line_items, :included_tax_total, :decimal, precision: 10, scale: 2, null: false, default: 0.0
    add_column :spree_shipments, :included_tax_total, :decimal, precision: 10, scale: 2, null: false, default: 0.0
    add_column :spree_orders, :included_tax_total, :decimal, precision: 10, scale: 2, null: false, default: 0.0
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195816_rename_tax_total_fields.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091757_rename_tax_total_fields.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091757_rename_tax_total_fields.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181945_rename_tax_total_fields.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181945_rename_tax_total_fields.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181945_rename_tax_total_fields.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181945_rename_tax_total_fields.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181945_rename_tax_total_fields.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181945_rename_tax_total_fields.spree.rb