Commit 6977b861 authored by Michael Kozono's avatar Michael Kozono

Merge branch '207468-note-confidential-attribute' into 'master'

Add confidential attribute to notes

See merge request gitlab-org/gitlab!25784
parents af8f0bdd df286558
---
title: Add confidential attribute to notes table
merge_request:
author:
type: other
# frozen_string_literal: true
class AddConfidentialToNote < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
with_lock_retries do
add_column :notes, :confidential, :boolean
end
end
end
...@@ -2806,6 +2806,7 @@ ActiveRecord::Schema.define(version: 2020_02_24_163804) do ...@@ -2806,6 +2806,7 @@ ActiveRecord::Schema.define(version: 2020_02_24_163804) do
t.text "change_position" t.text "change_position"
t.boolean "resolved_by_push" t.boolean "resolved_by_push"
t.bigint "review_id" t.bigint "review_id"
t.boolean "confidential"
t.index ["author_id"], name: "index_notes_on_author_id" t.index ["author_id"], name: "index_notes_on_author_id"
t.index ["commit_id"], name: "index_notes_on_commit_id" t.index ["commit_id"], name: "index_notes_on_commit_id"
t.index ["created_at"], name: "index_notes_on_created_at" t.index ["created_at"], name: "index_notes_on_created_at"
......
...@@ -72,6 +72,7 @@ Note: ...@@ -72,6 +72,7 @@ Note:
- resolved_by_push - resolved_by_push
- discussion_id - discussion_id
- original_discussion_id - original_discussion_id
- confidential
LabelLink: LabelLink:
- id - id
- target_type - target_type
......
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