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

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

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

  def up
    # Default is null to indicate that a health check has not run for a project
    # For now, health checks will only run on monitor demo projects
    add_column :clusters_applications_prometheus, :healthy, :boolean
  end

  def down
    remove_column :clusters_applications_prometheus, :healthy
  end
end