Commit ab607752 authored by Arun Kumar Mohan's avatar Arun Kumar Mohan

Add not null constraints to prometheus_metrics table columns

parent 4e4fcf79
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
...@@ -2869,8 +2869,8 @@ ActiveRecord::Schema.define(version: 2019_09_02_131045) do ...@@ -2869,8 +2869,8 @@ ActiveRecord::Schema.define(version: 2019_09_02_131045) do
t.integer "project_id" t.integer "project_id"
t.string "title", null: false t.string "title", null: false
t.string "query", null: false t.string "query", null: false
t.string "y_label" t.string "y_label", null: false
t.string "unit" t.string "unit", null: false
t.string "legend" t.string "legend"
t.integer "group", null: false t.integer "group", null: false
t.datetime_with_timezone "created_at", null: false t.datetime_with_timezone "created_at", null: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment