Sha256: e47a05627a5c1d382c07c224f1b25fc67f2e5966a42f17c460e454273bf9d320
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
# This migration comes from spree (originally 20150226195213) class DowncasePromotionCodesValues < ActiveRecord::Migration def up Spree::PromotionCode.update_all("value = lower(value)") Spree::Promotion.where.not(code: nil).update_all("code = lower(code)") end def down # can't tell which things we updated vs what things were like before raise ActiveRecord::IrreversibleMigration end end
Version data entries
2 entries across 2 versions & 1 rubygems