ActiveRecord instead of direct sql execution

Hi all,

I have 2 tables and a standard one-to-many association.

How do I substitute the following sql with ActiveRecord calls so that
it uses just one sql statement:

 update geo_entities set terminal_id = 3  where id = 10 or id = 23

or id = 87;

Thank you!

Regards,
Yuri L.

GeoEntities.update_all(“terminal_id = 3”, “id = 10 or id = 23 or id =
87”)

See http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000351

Vish