diff --git a/lib/validators/integer_setting_validator.rb b/lib/validators/integer_setting_validator.rb index 48a8d6ca7a1..630f3c08e31 100644 --- a/lib/validators/integer_setting_validator.rb +++ b/lib/validators/integer_setting_validator.rb @@ -2,7 +2,8 @@ class IntegerSettingValidator def initialize(opts = {}) @opts = opts @opts[:min] = 0 unless @opts[:min].present? || @opts[:hidden] - @opts[:max] = 20000 unless @opts[:max].present? || @opts[:hidden] + # set max closer to a long int + @opts[:max] = 2_000_000_000 unless @opts[:max].present? || @opts[:hidden] end def valid_value?(val)