gitlab-org--gitlab-foss/db/post_migrate/20210430130259_remove_obsolete_segments_field.rb

18 lines
435 B
Ruby

# frozen_string_literal: true
class RemoveObsoleteSegmentsField < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
def up
with_lock_retries do
remove_column :analytics_devops_adoption_segments, :name
end
end
def down
add_column :analytics_devops_adoption_segments, :name, :text
add_text_limit :analytics_devops_adoption_segments, :name, 255
end
end