summaryrefslogtreecommitdiff
path: root/db/migrate/20180103123548_add_confidential_note_events_to_services.rb
blob: 02724575e6cc02e1be71e02c789d7d783fcc6104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class AddConfidentialNoteEventsToServices < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column :services, :confidential_note_events, :boolean
    change_column_default :services, :confidential_note_events, true
  end

  def down
    remove_column :services, :confidential_note_events
  end
end