Sha256: 0ae3b65b35e6517c39cf94eb66417f3c33fd843d5498be038567df78e54dc56b
Contents?: true
Size: 559 Bytes
Versions: 2
Compression:
Stored size: 559 Bytes
Contents
# This migration comes from spree (originally 20150811211025) class AddFinalizedToSpreeAdjustments < ActiveRecord::Migration # This migration replaces the open/closed state column of spree_adjustments # with a finalized boolean. # This may cause a few minutes of downtime on very large stores as the # adjustments table can become quite large. def change add_column :spree_adjustments, :finalized, :boolean execute %q(UPDATE spree_adjustments SET finalized=('closed' = state)) remove_column :spree_adjustments, :state, :string end end
Version data entries
2 entries across 2 versions & 1 rubygems