Sha256: 3ac1745386c7d8975f61ce48c996cb6ed74f3bf0433c8dbc26e9a6d06b1797d9
Contents?: true
Size: 836 Bytes
Versions: 141
Compression:
Stored size: 836 Bytes
Contents
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
141 entries across 141 versions & 2 rubygems