debian-mirror-gitlab/db/migrate/20210722151951_add_columns_to_security_scans.rb
2021-10-27 15:23:28 +05:30

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