Sha256: 1c4b922bf3e9deaed288a5cd87f159cbc5a27fd6cd5b07bd05b26cb6e2bd5b8f
Contents?: true
Size: 551 Bytes
Versions: 14
Compression:
Stored size: 551 Bytes
Contents
# This migration comes from spree (originally 20130828234942) 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
14 entries across 14 versions & 7 rubygems