How do you migrate from heart- gold to ruby?

You can't migrate from HeartGold to Ruby. But it can be the opposite. Pokemon can be migrated from Pokemon Ruby to Pokemon HeartGold.