I had really bad heartburn dusing my last pregnancy and my obstetrician prescribed me something. Sorry I don't remember what it's called but it worked very well. With any medication I would ask the doctor first. There is some conflicting info out there about what is sa fever during pregnancy.
After you've eaten try not to lie down for at least half an hour and make sure you aren't having heavy meals right before bed.