Sha256: d54f13a10a9217fefd2f1586157e98df6490e19f7190606352232a2099a230e1

Contents?: true

Size: 204 Bytes

Versions: 2

Compression:

Stored size: 204 Bytes

Contents

module DataType
  class Range < Base
    def column
      definition = {:type => :integer}
      definition[:limit] = @value.max.to_s.length if @value.respond_to?(:max)
      definition
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
migrant-1.1.1 lib/datatype/range.rb
migrant-1.1.0 lib/datatype/range.rb