Commit 34727279 authored by Alper Akgun's avatar Alper Akgun

Merge branch...

Merge branch '324857-introduce-present_on_default_branch-boolean-to-vulnerability-model' into 'master'

Add present_on_default_branch:boolean to Vulnerabilities

See merge request gitlab-org/gitlab!64704
parents 256bb662 8f7c762b
# frozen_string_literal: true
class AddPresentOnDefaultBranchToVulnerabilities < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers
def up
with_lock_retries do
add_column :vulnerabilities, :present_on_default_branch, :boolean, default: true, null: false
end
end
def down
with_lock_retries do
remove_column :vulnerabilities, :present_on_default_branch
end
end
end
af58377b87f7e0fb4709637f96b24a4075322d0d8cf87dfaf5bf8e0f8a9372e0
\ No newline at end of file
......@@ -18924,7 +18924,8 @@ CREATE TABLE vulnerabilities (
confirmed_at timestamp with time zone,
dismissed_at timestamp with time zone,
dismissed_by_id bigint,
resolved_on_default_branch boolean DEFAULT false NOT NULL
resolved_on_default_branch boolean DEFAULT false NOT NULL,
present_on_default_branch boolean DEFAULT true NOT NULL
);
CREATE SEQUENCE vulnerabilities_id_seq
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment