Class: ROM::SQL::Migration::SchemaDiff::AttributeChanged Private
- Inherits:
-
AttributeDiff
- Object
- AttributeDiff
- ROM::SQL::Migration::SchemaDiff::AttributeChanged
- Defined in:
- lib/rom/sql/migration/schema_diff.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #nullability_changed? ⇒ Boolean private
- #type_changed? ⇒ Boolean private
Instance Method Details
#nullability_changed? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
97 98 99 |
# File 'lib/rom/sql/migration/schema_diff.rb', line 97 def nullability_changed? current.optional? ^ target.optional? end |
#type_changed? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
101 102 103 |
# File 'lib/rom/sql/migration/schema_diff.rb', line 101 def type_changed? clean(current.qualified) != clean(target.qualified) end |