summaryrefslogtreecommitdiff
path: root/db/migrate/20230214142813_remove_ci_job_artifacts_original_filename.rb
blob: fed09fb113d602f98b32e15c38c1bc6cc392eb07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class RemoveCiJobArtifactsOriginalFilename < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  def up
    # This column has never been used and has always been under ignore_column since it was added.
    # We're doing the removal of the ignore_column in the same MR with this migration and this
    # is why we are not doing this in post migrate.
    remove_column :ci_job_artifacts, :original_filename, :text # rubocop:disable Migration/RemoveColumn
  end

  def down
    add_column :ci_job_artifacts, :original_filename, :text
  end
end