comprehensive update to ActiveRecord