Sha256: b65ca9c45ecdaac19371e0c8eaf15d921d927f8694ae873717f3f611ee3e0195
Contents?: true
Size: 497 Bytes
Versions: 120
Compression:
Stored size: 497 Bytes
Contents
class AddTaxTotalToLineItemsShipmentsAndOrders < ActiveRecord::Migration[4.2] def change add_column :spree_line_items, :tax_total, :decimal, precision: 10, scale: 2, default: 0.0 add_column :spree_shipments, :tax_total, :decimal, precision: 10, scale: 2, default: 0.0 # This column may already be here from a 2.1.x migration add_column :spree_orders, :tax_total, :decimal, precision: 10, scale: 2, default: 0.0 unless column_exists? :spree_orders, :tax_total, :decimal end end
Version data entries
120 entries across 120 versions & 1 rubygems