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, #column_default_changed?, #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



79
80
81
# File 'lib/dsl/data_types/primitives.rb', line 79

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

Instance Method Details

#column_defaultsObject



75
76
77
# File 'lib/dsl/data_types/primitives.rb', line 75

def column_defaults
  {:type => :float}
end