gitlab-org--gitlab-foss/app/models/ci
Stan Hu 8ddb00adbf Ensure CI pipelines and builds have the correction project associations
This should reduce the number of SQL queries and lookups needed to look up a
project of a build and pipeline and vice versa.

Before:

```
[1] pry(main)> Ci::Build.reflect_on_association(:project).has_inverse?
=> false
[2] pry(main)> Project.reflect_on_association(:builds).has_inverse?
=> false
[3] pry(main)> Ci::Pipeline.reflect_on_association(:project).has_inverse?
=> false
[4] pry(main)> Project.reflect_on_association(:pipelines).has_inverse?
=> :project
```

After:

```
[1] pry(main)> Ci::Build.reflect_on_association(:project).has_inverse?
=> :builds
[2] pry(main)> Project.reflect_on_association(:builds).has_inverse?
=> :project
[3] pry(main)> Ci::Pipeline.reflect_on_association(:project).has_inverse?
=> :pipelines
[4] pry(main)> Project.reflect_on_association(:pipelines).has_inverse?
=> :project
```
2018-01-14 08:11:51 -08:00
..
artifact_blob.rb Fix the external URLs generated for online view of HTML artifacts 2017-10-20 23:38:35 +01:00
build.rb Ensure CI pipelines and builds have the correction project associations 2018-01-14 08:11:51 -08:00
build_trace_section.rb Add CI build trace sections extractor 2017-10-05 15:42:25 +02:00
build_trace_section_name.rb Add CI build trace sections extractor 2017-10-05 15:42:25 +02:00
group.rb Real time pipeline show action 2017-05-06 16:45:46 +00:00
group_variable.rb move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb` 2017-09-12 22:32:01 +03:00
job_artifact.rb Store expire_at in ci_job_artifacts 2017-12-03 12:05:23 +01:00
legacy_stage.rb Rename `Ci::Stage` class to `Ci::LegacyStage` 2017-06-01 12:00:37 +02:00
pipeline.rb Ensure CI pipelines and builds have the correction project associations 2018-01-14 08:11:51 -08:00
pipeline_schedule.rb Remove soft removals related code 2018-01-08 17:04:45 +01:00
pipeline_schedule_variable.rb move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb` 2017-09-12 22:32:01 +03:00
pipeline_variable.rb move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb` 2017-09-12 22:32:01 +03:00
runner.rb Perform SQL matching of Build&Runner tags to greatly speed-up job picking 2017-12-05 16:34:41 +01:00
runner_project.rb move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb` 2017-09-12 22:32:01 +03:00
stage.rb move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb` 2017-09-12 22:32:01 +03:00
trigger.rb Remove soft removals related code 2018-01-08 17:04:45 +01:00
trigger_request.rb move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb` 2017-09-12 22:32:01 +03:00
variable.rb move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb` 2017-09-12 22:32:01 +03:00