Sha256: 02da3ce7f4923177a3cf61994a72c7513e040421dae995130731322236f35ab7
Contents?: true
Size: 381 Bytes
Versions: 12
Compression:
Stored size: 381 Bytes
Contents
# This migration comes from spree (originally 20140804185157) class AddDefaultToShipmentCost < ActiveRecord::Migration def up change_column :spree_shipments, :cost, :decimal, precision: 10, scale: 2, default: 0.0 Spree::Shipment.where(cost: nil).update_all(cost: 0) end def down change_column :spree_shipments, :cost, :decimal, precision: 10, scale: 2 end end
Version data entries
12 entries across 12 versions & 6 rubygems