Class: Gitlab::BackgroundMigration::BackfillTopicsTitle
- Inherits:
-
Object
- Object
- Gitlab::BackgroundMigration::BackfillTopicsTitle
- Defined in:
- lib/gitlab/background_migration/backfill_topics_title.rb
Overview
The class to backfill the topic title
Defined Under Namespace
Classes: Topic
Instance Method Summary collapse
Instance Method Details
#perform(start_id, end_id) ⇒ Object
12 13 14 15 16 |
# File 'lib/gitlab/background_migration/backfill_topics_title.rb', line 12 def perform(start_id, end_id) Topic.where(id: start_id..end_id).where(title: nil).update_all('title = name') mark_job_as_succeeded(start_id, end_id) end |