debian-mirror-gitlab/db/post_migrate/20210203143131_migrate_existing_devops_segments_to_groups.rb
2021-03-11 19:13:27 +05:30

16 lines
414 B
Ruby

# frozen_string_literal: true
# Data migration to migrate multi-selection segments into separate segments.
# Both tables involved are pretty-low traffic and the number
# of records in DB cannot exceed 400
class MigrateExistingDevopsSegmentsToGroups < ActiveRecord::Migration[6.0]
DOWNTIME = false
def up
Gitlab::BackgroundMigration::MigrateDevopsSegmentsToGroups.new.perform
end
def down
end
end