repo.or.cz
/
uma.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
add files
[uma.git]
/
db
/
migrate
/
20100923095305_update_calculable_type_for_promotions.rb
blob
84e22827387a538da22ebc0b462de863454a1669
1
class UpdateCalculableTypeForPromotions < ActiveRecord::Migration
2
def self.up
3
Calculator.update_all("calculable_type = 'Promotion'", "calculable_type = 'Coupon'")
4
end
5
6
def self.down
7
Calculator.update_all("calculable_type = 'Coupon'", "calculable_type = 'Promotion'")
8
end
9
end