Guest User

Untitled

a guest
Apr 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. invalid_part_numbers = %w(29101427 29101428 29101429 29101430 29101431 34100457 34100458 34100459 34100460 34100461 34100462 34100463 34100464 34100465 34100466 34100467 34100468 34100469 34100470 34100471 34100472 34100473 34100474 30700410)
  2.  
  3. for number in invalid_part_numbers
  4. Part.find_by_part_number(number).prices.each{ |price|
  5. price.update_attribute(:value, 0.00)
  6. }
  7. end
Add Comment
Please, Sign In to add comment