datamapper/dm-core

View on GitHub
lib/dm-core/property/serial.rb

Summary

Maintainability
A
0 mins
Test Coverage
module DataMapper
  class Property
    class Serial < Integer
      serial    true
      min       1

      # @api private
      def to_child_key
        Property::Integer
      end

    end # class Text
  end # module Property
end # module DataMapper