debian-mirror-gitlab/db/migrate/prometheus_metrics_limits_to_mysql.rb

13 lines
248 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
class PrometheusMetricsLimitsToMysql < ActiveRecord::Migration[4.2]
2018-11-20 20:47:30 +05:30
DOWNTIME = false
def up
return unless Gitlab::Database.mysql?
change_column :prometheus_metrics, :query, :text, limit: 4096, default: nil
end
def down
end
end