Ender Rail Sideways
Structure of Ender Rail Sideways

Ender Rail Up + Down (Elevator)
Structure of Ender Rail Up

It’s the same for the Ender Rail Down except for the golden pressure plate. Just change this with an iron pressure plate and you’re done.