aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb
blob: 89728b0fe21d1ca0a7dc1c9ff77ef6c819f9fbd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      module OID # :nodoc:
        class Uuid < Type::Value # :nodoc:
          def type
            :uuid
          end

          def type_cast(value)
            value.presence
          end
        end
      end
    end
  end
end