gitlab-org--gitlab-foss/db/migrate/20210722151951_add_columns_to_security_scans.rb

21 lines
499 B
Ruby

# frozen_string_literal: true
class AddColumnsToSecurityScans < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
def up
with_lock_retries do
add_column :security_scans, :project_id, :bigint
add_column :security_scans, :pipeline_id, :bigint
end
end
def down
with_lock_retries do
remove_column :security_scans, :project_id, :bigint
remove_column :security_scans, :pipeline_id, :bigint
end
end
end