Sha256: 31261c5f45e00bc8635a35e93dafe250fb14e7c8e093ac42429c8f66e2045bd8
Contents?: true
Size: 500 Bytes
Versions: 21
Compression:
Stored size: 500 Bytes
Contents
class AddFinalizedToSpreeAdjustments < ActiveRecord::Migration[4.2] # 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 "UPDATE spree_adjustments SET finalized=('closed' = state)" remove_column :spree_adjustments, :state, :string end end
Version data entries
21 entries across 21 versions & 1 rubygems