Skip to content

Inherit CI models from Ci::ApplicationRecord [RUN AS-IF-FOSS]

What does this MR do?

Related issue: #336426 (closed)

Introduce a new Ci::ApplicationRecord that all CI models should inherit from. The new ApplicationRecord can be used for the decomposition effort to specify the appropriate connection to the CI database.

There's a few additions in the list of models in this MR compared to the linked issue:

app/models/ci/pending_build.rb
app/models/ci/pipeline_chat_data.rb
app/models/ci/running_build.rb
ee/app/models/ci/minutes/additional_pack.rb

With the exception of Ci::PipelineChatData these all look to be recently added models, but I don't see any reason they shouldn't all be included.

Screenshots or Screencasts (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #336426 (closed)

Edited by Patrick Bair

Merge request reports