Heirs and devisees are liable to an action by a creditor of a deceased person to recover the debt of their ancestor or testator to the extent of the value of any real property inherited by or devised to them. If such action is against the heirs, all the heirs who are liable shall be made parties to the action.