Skip to content
Snippets Groups Projects
Commit ab607752 authored by Arun Kumar Mohan's avatar Arun Kumar Mohan
Browse files

Add not null constraints to prometheus_metrics table columns

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