SHARE
TWEET

Untitled

a guest Jan 12th, 2017 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. User.where(weight_unit: "lbs").where.not(weight: nil).find_each { |u| u.athlete_profile.update!(precise_weight: (u.weight * 0.45359237).round(1)) }
RAW Paste Data
Top