Say that you knew that you want things with identifiers 1, 2 and 3 to have points, 2, 8 and 64 (as opposed to random numbers), you could:
UPDATE things AS t SET score = c.score FROM (values (1, 2), (2, 30), (4, 50) ) as c(id, score) where c.id = t.id;
So, with Rails, you should use ActiveRecord::Base.connection#execute to execute a block similar to the above, but with the corresponding interpolated value string.
source share