Method: Ci::Build#all_queuing_entries
- Defined in:
- app/models/ci/build.rb
#all_queuing_entries ⇒ Object
We can have only one queuing entry or running build tracking entry, because there is a unique index on build_id in each table, but we need a relation to remove these entries more efficiently in a single statement without actually loading data.
1231 1232 1233 |
# File 'app/models/ci/build.rb', line 1231 def all_queuing_entries ::Ci::PendingBuild.where(build_id: id) end |