blob: 535369e630795d8e33c2d15098b7d00e30c8c221 (
plain) (
tree)
|
|
# frozen_string_literal: true
module ActiveRecord
module Type
class UnsignedInteger < ActiveModel::Type::Integer # :nodoc:
private
def max_value
super * 2
end
def min_value
0
end
end
end
end
|