Class: ROM::SQL::Migration::SchemaDiff::AttributeChanged Private

Inherits:
AttributeDiff
  • Object
show all
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

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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


101
102
103
# File 'lib/rom/sql/migration/schema_diff.rb', line 101

def type_changed?
  clean(current.qualified) != clean(target.qualified)
end