You may play Ragged Veins any time you could play an instant.
Whenever enchanted creature is dealt damage, its controller loses that much life.