debian-mirror-gitlab/db/migrate/20200913115700_add_kroki_application_settings.rb
2021-02-22 17:27:13 +05:30

16 lines
529 B
Ruby

# frozen_string_literal: true
class AddKrokiApplicationSettings < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20201011005400_add_text_limit_to_application_settings_kroki_url.rb
#
def change
add_column :application_settings, :kroki_url, :text
add_column :application_settings, :kroki_enabled, :boolean, default: false, null: false
end
# rubocop:enable Migration/AddLimitToTextColumns
end