Check if migrations have been run before loading models

* Prevent cc_worker, cc_clock, and cc_api from starting if migrations
  have not been run yet.

[#82697984]