Created
November 18, 2012 19:20
-
-
Save marshallshen/4106990 to your computer and use it in GitHub Desktop.
Update the product price
This file contains 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
Spree::Product.all.each do |p| | |
p.update_attributes!(price: p.price+100) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment