Sha256: 105e2dceb9abe64c3390d620279b6a7de587b30c03e55b1c43fc2c63f084015d
Contents?: true
Size: 357 Bytes
Versions: 21
Compression:
Stored size: 357 Bytes
Contents
class DowncasePromotionCodesValues < ActiveRecord::Migration[4.2] 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
21 entries across 21 versions & 1 rubygems