There are several theories to this idiom but all of them center around drinking alcohol. Read about them here . Tie one on? It means to drink excessively.
This common phrase means exactly what we use it for. Marriage. Why it means that is another story. There are several ideas about the why and you can read about them here . I always liked the tradition of handfasting in a marriage ceremony.