summaryrefslogtreecommitdiff
path: root/db/migrate/20200222055543_add_confidential_to_note.rb
blob: d7bf64dca44146d8f71e510b890d2f601d637362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true
class AddConfidentialToNote < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    with_lock_retries do
      add_column :notes, :confidential, :boolean
    end
  end

  def down
    with_lock_retries do
      remove_column :notes, :confidential
    end
  end
end