How to update multiple different values at the same time in one query
Context
You want to update the same column for multiple records in one query and set different values for each record.
Example:
class Car < ActiveRecord::Base
# has attributes: id, license_plate
end
Let's say you want to update license plates and yo...
allaboutcoding.ghinda.com3 min read