Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c19beacae3
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.334 kb
class UpdateCalculableTypeForPromotions < ActiveRecord::Migration
class Calculator < ActiveRecord::Base
end
def self.up
Calculator.update_all("calculable_type = 'Promotion'", "calculable_type = 'Coupon'")
end
def self.down
Calculator.update_all("calculable_type = 'Coupon'", "calculable_type = 'Promotion'")
end
end
Jump to Line
Something went wrong with that request. Please try again.