Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- for number in invalid_part_numbers
- Part.find_by_part_number(number).prices.each{ |price|
- price.update_attribute(:value, 0.00)
- }
- end
Add Comment
Please, Sign In to add comment