update a lot of objects

Model.update_all 'active = true', 'your conditions'

Cheers, Yuri