Sha256: 19489d137dcc8e6cc555079a26e19886e64976e9893bebd717455063efcc82b0
Contents?: true
Size: 489 Bytes
Versions: 120
Compression:
Stored size: 489 Bytes
Contents
class AddTaxTotalToLineItemsShipmentsAndOrders < ActiveRecord::Migration 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 Spree::Order.column_names.include?("tax_total") end end
Version data entries
120 entries across 120 versions & 3 rubygems