Class: DataType::TrueClass
- Inherits:
-
Base
- Object
- Base
- DataType::TrueClass
show all
- Defined in:
- lib/dsl/data_types/primitives.rb
Overview
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?, #serialized?, short_text_mock, #structure_changes_from
Constructor Details
This class inherits a constructor from DataType::Base
Class Method Details
.default_mock ⇒ Object
12
13
14
|
# File 'lib/dsl/data_types/primitives.rb', line 12
def self.default_mock
true
end
|
Instance Method Details
#column_default_changed?(old_default, new_default) ⇒ Boolean
16
17
18
|
# File 'lib/dsl/data_types/primitives.rb', line 16
def column_default_changed?(old_default, new_default)
old_default.to_s[0] != new_default.to_s[0]
end
|
#column_defaults ⇒ Object
4
5
6
|
# File 'lib/dsl/data_types/primitives.rb', line 4
def column_defaults
{:type => :boolean}
end
|
8
9
10
|
# File 'lib/dsl/data_types/primitives.rb', line 8
def mock
self.class.default_mock
end
|