Last active
December 17, 2015 23:09
-
-
Save jonstorer/5687163 to your computer and use it in GitHub Desktop.
Migrate all Win documents to PrizeWin documents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CashstarFulfillment.all.each do |cf| | |
cf.set(:prize_win_id, cf.win_id) | |
end | |
Win.all.each do |win| | |
win.set(:_type, 'PrizeWin') | |
end | |
CashstarFulfillment.all.each do |cf| | |
cf.unset(:win_id) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment