Class: DataType::Time
- Defined in:
- lib/dsl/data_types/primitives.rb
Instance Attribute Summary
Attributes inherited from Base
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_mock ⇒ Object
47 48 49 |
# File 'lib/dsl/data_types/primitives.rb', line 47 def self.default_mock ::Time.now end |
Instance Method Details
#column_defaults ⇒ Object
43 44 45 |
# File 'lib/dsl/data_types/primitives.rb', line 43 def column_defaults {:type => :datetime} end |