Sha256: 5c3ab472d00f0bc51a2759687165c8248d9eefc22f476fcf20586ba1ff9a775f
Contents?: true
Size: 352 Bytes
Versions: 39
Compression:
Stored size: 352 Bytes
Contents
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
39 entries across 39 versions & 1 rubygems