add files
[uma.git] / db / migrate / 20100923095305_update_calculable_type_for_promotions.rb
blob84e22827387a538da22ebc0b462de863454a1669
1 class UpdateCalculableTypeForPromotions < ActiveRecord::Migration
2   def self.up
3     Calculator.update_all("calculable_type = 'Promotion'", "calculable_type = 'Coupon'")
4   end
6   def self.down
7     Calculator.update_all("calculable_type = 'Coupon'", "calculable_type = 'Promotion'")
8   end
9 end