summaryrefslogtreecommitdiff
path: root/db/migrate/20200708080631_add_pager_duty_integration_columns_to_project_incident_management_settings.rb
blob: ab56a863f518969ed8628bcb2064ecb83ba7907b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddPagerDutyIntegrationColumnsToProjectIncidentManagementSettings < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  # limit constraints added in a separate migration:
  # 20200710130234_add_limit_constraints_to_project_incident_management_settings_token.rb
  def change
    add_column :project_incident_management_settings, :pagerduty_active, :boolean, null: false, default: false
    add_column :project_incident_management_settings, :encrypted_pagerduty_token, :binary, null: true
    add_column :project_incident_management_settings, :encrypted_pagerduty_token_iv, :binary, null: true
  end
end