Sha256: 6c05e761e5445464d48ea05955dbdd9c3917afdf8f6e334782cff6632ebe6ce9
Contents?: true
Size: 262 Bytes
Versions: 120
Compression:
Stored size: 262 Bytes
Contents
class AddStoreIdToOrders < ActiveRecord::Migration[4.2] def change add_column :spree_orders, :store_id, :integer if Spree::Store.default.persisted? Spree::Order.where(store_id: nil).update_all(store_id: Spree::Store.default.id) end end end
Version data entries
120 entries across 120 versions & 1 rubygems