debian-mirror-gitlab/db/post_migrate/20220106185033_remove_finding_evidence_summary.rb

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

16 lines
373 B
Ruby
Raw Normal View History

2022-04-04 11:22:00 +05:30
# frozen_string_literal: true
class RemoveFindingEvidenceSummary < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
remove_column :vulnerability_finding_evidences, :summary, :text
end
def down
add_column :vulnerability_finding_evidences, :summary, :text
add_text_limit :vulnerability_finding_evidences, :summary, 8_000_000
end
end