I do a lot of structural stuff, and this client wants bolt counts, because they put together "modification kits" for cell phone antennas. So I need a bolt of the right type in every hole for the BOM. It would be impossible to put bolts everywhere individually and not forget some
Yes, absolutely ALWAYS use subassemblies. The subassembly can start with one part, just the "rail". Then you put bolts in the holes of the subassembly, and then whenever you use that subassembly, it will have the bolts. Make the nut and bolt a subassembly if you want both.
If you do not need all the bolts, then just put an axis through the hole, and use the geometry (show part geometry) to locate the rail so that the hole is lined up with the slot. Or, you can make the hole surface tangent to the side of the slot.
Using the hole is considered bad form by some. But by using it, if the hole is moved (without being deleted, just changing dimensions) then it will still line up, and you will see if any other problems occur, more easily.
You could also use a constraint of the end of the rail to the side of the extrusion, dimensioned to make the hole line up. But then you have to check separately about the hole lining up with the slot of the extrusion.