debian-mirror-gitlab/db/migrate/20230214142813_remove_ci_job_artifacts_original_filename.rb
2023-04-23 21:23:45 +05:30

17 lines
579 B
Ruby

# 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