class ROM::SQL::Migration::SchemaDiff::AttributeChanged
Public Instance Methods
nullability_changed?()
click to toggle source
# File lib/rom/sql/migration/schema_diff.rb, line 98 def nullability_changed? current.optional? ^ target.optional? end
type_changed?()
click to toggle source
# File lib/rom/sql/migration/schema_diff.rb, line 102 def type_changed? clean(current.qualified) != clean(target.qualified) end
Private Instance Methods
clean(type)
click to toggle source
# File lib/rom/sql/migration/schema_diff.rb, line 108 def clean(type) unwrap(type).meta(index: nil, foreign_key: nil, target: nil) end