update deprecated Relation#update_all with conditions to new format.