An action for payment or recovery of wages shall be barred after three years from the date on which the claimant knew or ought to have known of the facts giving rise to the claim. The claim may relate to sums due in respect of the last three years from that date or, where the employment contract has been terminated, to sums due in respect of the three years preceding the termination of the contract.