It is the duty of the county legislative bodies, in letting out all contracts for the erection of bridges, to require that they be made secure, with good and substantial railing of the height of three feet (3′).