Class: DataType::Range

Inherits:
Base
  • Object
show all
Defined in:
lib/dsl/data_types/primitives.rb

Overview

Range (0..10)

Instance Attribute Summary

Attributes inherited from Base

#aliases

Instance Method Summary collapse

Methods inherited from Base

#==, #column, #column_default_changed?, #dangerous_migration_from?, default_mock, #initialize, long_text_mock, migrant_data_type?, #mock, #serialized?, short_text_mock, #structure_changes_from

Constructor Details

This class inherits a constructor from DataType::Base

Instance Method Details

#column_defaultsObject



86
87
88
89
# File 'lib/dsl/data_types/primitives.rb', line 86

def column_defaults
  definition = {:type => :integer}
  definition
end