Rail ditch and fence