debian-mirror-gitlab/db/post_migrate/20210430130259_remove_obsolete_segments_field.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
435 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# 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