Updates several records at a time using the pattern of a hash that contains id => {attributes} pairs as contained in +id_and_attributes_pairs+.
If there are certain conditions that must be met in order for the update to occur, an optional block containing a conditional statement may be used. Example:
Person.update_many { 23 => { "first_name" => "John", "last_name" => "Peterson" },
25 => { "first_name" => "Duane", "last_name" => "Johnson" } }
# The following updates only those records whose first name begins with 'duane' or 'Duane'
Person.update_many @paramspeople? do |activerecord_object, new_attributes|
activerecord_object.first_name =~ /[dD]uane.*/
end