Sha256: be9f5b361a456a4aeebc2299f0dcde718b5535eef524aa5641143be8fb73f590

Contents?: true

Size: 898 Bytes

Versions: 9

Compression:

Stored size: 898 Bytes

Contents

# This migration comes from spree (originally 20140723152808)
class IncreaseReturnItemPreTaxAmountPrecision < ActiveRecord::Migration[4.2]
  def up
    change_column :spree_return_items, :pre_tax_amount, :decimal, precision: 12, scale: 4, default: 0.0, null: false
    change_column :spree_return_items, :included_tax_total, :decimal, precision: 12, scale: 4, default: 0.0, null: false
    change_column :spree_return_items, :additional_tax_total, :decimal, precision: 12, scale: 4, default: 0.0, null: false
  end

  def down
    change_column :spree_return_items, :pre_tax_amount, :decimal, precision: 10, scale: 2, default: 0.0, null: false
    change_column :spree_return_items, :included_tax_total, :decimal, precision: 10, scale: 2, default: 0.0, null: false
    change_column :spree_return_items, :additional_tax_total, :decimal, precision: 10, scale: 2, default: 0.0, null: false
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195876_increase_return_item_pre_tax_amount_precision.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091817_increase_return_item_pre_tax_amount_precision.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091817_increase_return_item_pre_tax_amount_precision.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182005_increase_return_item_pre_tax_amount_precision.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182005_increase_return_item_pre_tax_amount_precision.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182005_increase_return_item_pre_tax_amount_precision.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182005_increase_return_item_pre_tax_amount_precision.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182005_increase_return_item_pre_tax_amount_precision.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182005_increase_return_item_pre_tax_amount_precision.spree.rb