Sha256: 3c669ccdabbf79f9384d17830fedc439a9c3c7ca728df297c7d875ef957fa736

Contents?: true

Size: 302 Bytes

Versions: 13

Compression:

Stored size: 302 Bytes

Contents

class FixExistingCouponCredits < ActiveRecord::Migration
  def self.up
    execute("UPDATE adjustments SET type='PromotionCredit' WHERE type='CouponCredit'")
    execute("UPDATE adjustments SET adjustment_source_type='Promotion' WHERE adjustment_source_type='Coupon'")
  end

  def self.down
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
spree_core-0.70.7 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_core-0.70.6 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_core-0.70.5 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_core-0.70.4 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_change_locale-0.5.3 spec/dummy/db/migrate/20111106114176_fix_existing_coupon_credits.rb
spree_core-0.70.3 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_change_locale-0.5.2 spec/dummy/db/migrate/20111106114176_fix_existing_coupon_credits.rb
spree_core-0.70.2 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_change_locale-0.5.1 spec/dummy/db/migrate/20111106114176_fix_existing_coupon_credits.rb
spree_core-0.70.1 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_core-0.70.0 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_core-0.70.0.rc2 db/migrate/20100419194457_fix_existing_coupon_credits.rb
spree_core-0.70.RC1 db/migrate/20100419194457_fix_existing_coupon_credits.rb