delete_by_scope method