Sha256: b5dd7f60d6beb1109709311f816e2e0a23819f0330aad5cc10a8229b9675649f

Contents?: true

Size: 559 Bytes

Versions: 9

Compression:

Stored size: 559 Bytes

Contents

# This migration comes from spree (originally 20130828234942)
class AddTaxTotalToLineItemsShipmentsAndOrders < ActiveRecord::Migration[4.2]
  def change
    add_column :spree_line_items, :tax_total, :decimal, precision: 10, scale: 2, default: 0.0
    add_column :spree_shipments, :tax_total, :decimal, precision: 10, scale: 2, default: 0.0
    # This column may already be here from a 2.1.x migration
    add_column :spree_orders, :tax_total, :decimal, precision: 10, scale: 2, default: 0.0 unless column_exists? :spree_orders, :tax_total, :decimal
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195803_add_tax_total_to_line_items_shipments_and_orders.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091744_add_tax_total_to_line_items_shipments_and_orders.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091744_add_tax_total_to_line_items_shipments_and_orders.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181932_add_tax_total_to_line_items_shipments_and_orders.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181932_add_tax_total_to_line_items_shipments_and_orders.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181932_add_tax_total_to_line_items_shipments_and_orders.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181932_add_tax_total_to_line_items_shipments_and_orders.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181932_add_tax_total_to_line_items_shipments_and_orders.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181932_add_tax_total_to_line_items_shipments_and_orders.spree.rb