Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20180103123548_add_confidential_note_events_to_services.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b54ad88df437dff73d50113eb27b23904a2676a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class AddConfidentialNoteEventsToServices < ActiveRecord::Migration
  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