I\'ve been trying to convert this Postgresql UPDATE query into an ActiveRecord call on Rails.
UPDATE uploads AS u SET organization_id = p.owner_id FROM proj