Sha256: 5786581941ece2880efc8a73fbc2842367addacfd6a567f32bc74ea3e3f62a9e

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

Contents

# This migration comes from spree (originally 20150626181949)
class AddTaxableAdjustmentTotalToLineItem < ActiveRecord::Migration[4.2]
  def change
    add_column :spree_line_items, :taxable_adjustment_total, :decimal,
               precision: 10, scale: 2, default: 0.0, null: false
    add_column :spree_line_items, :non_taxable_adjustment_total, :decimal,
               precision: 10, scale: 2, default: 0.0, null: false

    add_column :spree_shipments, :taxable_adjustment_total, :decimal,
               precision: 10, scale: 2, default: 0.0, null: false
    add_column :spree_shipments, :non_taxable_adjustment_total, :decimal,
               precision: 10, scale: 2, default: 0.0, null: false

    add_column :spree_orders, :taxable_adjustment_total, :decimal,
               precision: 10, scale: 2, default: 0.0, null: false
    add_column :spree_orders, :non_taxable_adjustment_total, :decimal,
               precision: 10, scale: 2, default: 0.0, null: false
    # TODO migration that updates old orders
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195923_add_taxable_adjustment_total_to_line_item.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091864_add_taxable_adjustment_total_to_line_item.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091864_add_taxable_adjustment_total_to_line_item.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182052_add_taxable_adjustment_total_to_line_item.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182052_add_taxable_adjustment_total_to_line_item.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182052_add_taxable_adjustment_total_to_line_item.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182052_add_taxable_adjustment_total_to_line_item.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182052_add_taxable_adjustment_total_to_line_item.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182052_add_taxable_adjustment_total_to_line_item.spree.rb