Sha256: c97d75c195ddb6361029a6163df68e373b3d071983628bd74f1a9cf6e841265e
Contents?: true
Size: 497 Bytes
Versions: 15
Compression:
Stored size: 497 Bytes
Contents
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
15 entries across 15 versions & 1 rubygems