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

12 lines
313 B
Ruby

# frozen_string_literal: true
class AllowNullPipelineIdToDastPreScanVerification < Gitlab::Database::Migration[2.1]
def up
change_column_null :dast_pre_scan_verifications, :ci_pipeline_id, true
end
def down
# There may now be nulls in the table, so we cannot re-add the constraint here.
end
end