debian-mirror-gitlab/db/migrate/20200729200808_add_text_limit_to_runbook_on_prometheus_alerts.rb

17 lines
350 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
class AddTextLimitToRunbookOnPrometheusAlerts < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_text_limit :prometheus_alerts, :runbook_url, 255
end
def down
remove_text_limit :prometheus_alerts, :runbook_url
end
end