blob: 4619528f81875fa0b3d8f17c3be90e1e22e7f391 (
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
|