In all actions brought against any railway corporation to recover damages for the personal injury or death of any employee under or by virtue of any of the provisions of section 327D.186, the fact that the employee may have been guilty of contributory negligence shall not bar a recovery; but the damages shall be diminished by the jury in proportion to the amount of negligence attributable to such employee.