debian-mirror-gitlab/db/migrate/20221017084208_rename_ci_pipeline_metadata_title.rb

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

14 lines
341 B
Ruby
Raw Normal View History

2023-01-13 00:05:48 +05:30
# frozen_string_literal: true
class RenameCiPipelineMetadataTitle < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
def up
rename_column_concurrently :ci_pipeline_metadata, :title, :name, batch_column_name: :pipeline_id
end
def down
undo_rename_column_concurrently :ci_pipeline_metadata, :title, :name
end
end