In my current campaign, I've tooled a shipyard that's capable of building freighters, colony ships, and troop transports. Tooling the yard for the freighter or troop transport wouldn't work. Tooling for the colony ship was the key.
In the class design screen, there is a tab that shows what other classes can be built in a yard tooled for the selected class.