Sha256: f93fbcc5f4b97c8fd432b6467dd43d81fc8d7ad7c467fdc6f1d9319d2370cdc8

Contents?: true

Size: 893 Bytes

Versions: 6

Compression:

Stored size: 893 Bytes

Contents

# This migration comes from spree (originally 20140723152808)
class IncreaseReturnItemPreTaxAmountPrecision < ActiveRecord::Migration
  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

6 entries across 6 versions & 3 rubygems

Version Path
spree_weight_calculator-0.1.0 test/dummy/db/migrate/20160723192598_increase_return_item_pre_tax_amount_precision.spree.rb
spree_order_reporting-0.0.3 spec/dummy/db/migrate/20160708163195_increase_return_item_pre_tax_amount_precision.spree.rb
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103520_increase_return_item_pre_tax_amount_precision.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112472_increase_return_item_pre_tax_amount_precision.spree.rb
sprangular-0.1.0 spec/dummy/db/migrate/20141203183777_increase_return_item_pre_tax_amount_precision.spree.rb
sprangular-0.0.1 spec/dummy/db/migrate/20141203183777_increase_return_item_pre_tax_amount_precision.spree.rb