Class: Gitlab::BackgroundMigration::FixProjectsWithoutProjectFeature
- Inherits:
-
Object
- Object
- Gitlab::BackgroundMigration::FixProjectsWithoutProjectFeature
- Defined in:
- lib/gitlab/background_migration/fix_projects_without_project_feature.rb
Overview
This migration creates missing project_features records for the projects within the given range of ids
Instance Method Summary collapse
Instance Method Details
#perform(from_id, to_id) ⇒ Object
8 9 10 11 12 |
# File 'lib/gitlab/background_migration/fix_projects_without_project_feature.rb', line 8 def perform(from_id, to_id) if number_of_created_records = create_missing!(from_id, to_id) > 0 log(number_of_created_records, from_id, to_id) end end |