Using the endplate - column to rafter steel connection type, you can connect a column to a rafter with either a bolted or a welded connection.
An example of the connection is displayed below.