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