Skip to content

Instantly share code, notes, and snippets.

@marshallshen
Created November 18, 2012 19:20
Show Gist options
  • Save marshallshen/4106990 to your computer and use it in GitHub Desktop.
Save marshallshen/4106990 to your computer and use it in GitHub Desktop.
Update the product price
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