What god was medusa before she got turned into medusa by Athena?

Medusa was always a goddess called Medusa, if she was a goddess Athena only cursed her.