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

20190724112147_add_column_for_self_monitoring_project_id.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ce249a527e668c6bdbaadea8da3cd6ceff563fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class AddColumnForSelfMonitoringProjectId < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  def change
    add_reference(
      :application_settings,
      :instance_administration_project,
      index: { name: 'index_applicationsettings_on_instance_administration_project_id' },
      foreign_key: { to_table: :projects, on_delete: :nullify }
    )
  end
end