Sha256: ab6e193ac2ff541f52b2aeddfedc9d917a99a7fbcf96153f9c350b88f2a86ce5
Contents?: true
Size: 831 Bytes
Versions: 87
Compression:
Stored size: 831 Bytes
Contents
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
87 entries across 87 versions & 2 rubygems