The present invention relates to a gate system for an overhead lifting rail system, comprising: a first gate, and a second gate, each gate comprising: a rail portion for suspending a lifting carriage a locking pin movable between a first position and a second position, wherein in the first position the lifting carriage is blocked from traversing the rail portion, and in the second position the lifting carriage is able to traverse the rail portion a locking pin magnet coupled to the locking pin and a gate magnet fixed relative to the rail portion. Upon the first gate engaging with the second gate, the locking pin magnet of the first gate engages with the gate magnet of the second gate, and the locking pin of the second gate engages with the gate magnet of the first gate such that, upon the rail portions being substantially aligned, each locking pin is moved from the first position to the second position.