class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Range

def ==(other)

def ==(other)
  other.is_a?(Range) &&
    other.subtype == subtype &&
    other.type == type
end