1045. The court may, at any stage of the proceedings in a class action, prescribe measures designed to hasten their progress and to simplify the proof, if they do not prejudice a party or the members; it may also order the publication of a notice to the members when it considers it necessary for the preservation of their rights.