gitlab-org--gitlab-foss/db/migrate/prometheus_metrics_limits_to_mysql.rb

13 lines
243 B
Ruby
Raw Normal View History

2018-09-04 08:56:21 -04:00
class PrometheusMetricsLimitsToMysql < ActiveRecord::Migration
DOWNTIME = false
def up
return unless Gitlab::Database.mysql?
change_column :prometheus_metrics, :query, :text, limit: 4096, default: nil
end
def down
end
end