Sha256: aea5708c055adae55afa1d696db42aea1ffa7e97189f6e824e3da4c332a4cfe0
Contents?: true
Size: 533 Bytes
Versions: 9
Compression:
Stored size: 533 Bytes
Contents
# This migration comes from spree (originally 20130417123427) class AddShippingRatesToShipments < ActiveRecord::Migration[4.2] def up Spree::Shipment.find_each do |shipment| shipment.shipping_rates.create(shipping_method_id: shipment.shipping_method_id, cost: shipment.cost, selected: true) end remove_column :spree_shipments, :shipping_method_id end def down add_column :spree_shipments, :shipping_method_id, :integer end end
Version data entries
9 entries across 9 versions & 2 rubygems