debian-mirror-gitlab/db/migrate/20210817172214_add_yaml_limits_application_setting.rb

11 lines
336 B
Ruby
Raw Normal View History

2021-11-11 11:23:49 +05:30
# 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