Class: DataType::Float

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

Instance Attribute Summary

Attributes inherited from Base

#aliases

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #column, #dangerous_migration_from?, #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

Class Method Details

.default_mockObject



68
69
70
# File 'lib/dsl/data_types/primitives.rb', line 68

def self.default_mock
  rand(100).to_f-55.0
end

Instance Method Details

#column_defaultsObject



64
65
66
# File 'lib/dsl/data_types/primitives.rb', line 64

def column_defaults
  {:type => :float}
end