Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210817172214_add_yaml_limits_application_setting.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f502ef9825b2c833682e94a4367fe3155d9e7e8b (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

class AddYamlLimitsApplicationSetting < ActiveRecord::Migration[6.1]
  DOWNTIME = false

  def change
    add_column :application_settings, :max_yaml_size_bytes, :bigint, default: 1.megabyte, null: false
    add_column :application_settings, :max_yaml_depth, :integer, default: 100, null: false
  end
end