Employee was unchaining a drill rig in the front while the contractors unchained the back. The employee was on the top deck of the trailer under the raised drop gate of the drill rig. As the operator was removing themselves from under the drill rig it began to slowly tip towards them. The drill rig slowly came to rest on the employee's leg pinning it to the top deck.