I'm not sure this will be valid for all database types like it may not work for sqlite3.

Could you make this go through activerecord to be sure.  Like Spree::Page.update_all(:render_title_automatically, true) or similar method.