Class: Gitlab::BackgroundMigration::BackfillDraftStatusOnMergeRequests::MergeRequest
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gitlab::BackgroundMigration::BackfillDraftStatusOnMergeRequests::MergeRequest
- Includes:
- EachBatch
- Defined in:
- lib/gitlab/background_migration/backfill_draft_status_on_merge_requests.rb
Overview
Migration only version of MergeRequest table
Class Method Summary collapse
Class Method Details
.eligible ⇒ Object
15 16 17 18 19 |
# File 'lib/gitlab/background_migration/backfill_draft_status_on_merge_requests.rb', line 15 def self.eligible where(state_id: 1) .where(draft: false) .where("title ~* ?", '^\\[draft\\]|\\(draft\\)|draft:|draft|\\[WIP\\]|WIP:|WIP') end |