Change all "find_all_by" ActiveRecord calls to "where" calls.