Sha256: fefa065009f7e1fd58659aa04e9a8496454be61205f84ffced4e91789aaaa90e

Contents?: true

Size: 383 Bytes

Versions: 4

Compression:

Stored size: 383 Bytes

Contents

# This migration comes from spree_promo (originally 20100923095305)
class UpdateCalculableTypeForPromotions < ActiveRecord::Migration
  def up
    execute "UPDATE spree_calculators SET calculable_type = 'Promotion' WHERE calculable_type = 'Coupon'"
  end

  def down
    execute "UPDATE spree_calculators SET calculable_type = 'Coupon' WHERE calculable_type = 'Promotion'"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datashift_spree-0.3.0 spec/sandbox/db/migrate/20121023154473_update_calculable_type_for_promotions.spree_promo.rb
datashift_spree-0.2.1 spec/sandbox/db/migrate/20121015151266_update_calculable_type_for_promotions.spree_promo.rb
datashift_spree-0.2.0 spec/sandbox/db/migrate/20120925192834_update_calculable_type_for_promotions.spree_promo.rb
datashift_spree-0.1.0 spec/sandbox/db/migrate/20120918081565_update_calculable_type_for_promotions.spree_promo.rb