The school board may, unless otherwise provided by statute or state board regulations, prescribe regulations for the attendance upon, and for the management, classification and discipline of, the schools; and such regulations, when recorded in the official records of the school board, shall be binding upon pupils and teachers.