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

20190828110802_add_not_null_constraints_to_prometheus_metrics_y_label_and_unit.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f3650ca966a45393c0ead3b7c72f28ee89cbc64 (plain)
1
2
3
4
5
6
7
8
class AddNotNullConstraintsToPrometheusMetricsYLabelAndUnit < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  def change
    change_column_null(:prometheus_metrics, :y_label, false)
    change_column_null(:prometheus_metrics, :unit, false)
  end
end