Class: Mxrb::Runtime::SchemaMigrationPlan
- Inherits:
-
Data
- Object
- Data
- Mxrb::Runtime::SchemaMigrationPlan
- Defined in:
- lib/mxrb/runtime/schema_migrator.rb
Instance Attribute Summary collapse
-
#removed_associations ⇒ Object
readonly
Returns the value of attribute removed_associations.
-
#removed_attributes ⇒ Object
readonly
Returns the value of attribute removed_attributes.
-
#removed_entities ⇒ Object
readonly
Returns the value of attribute removed_entities.
Instance Method Summary collapse
Instance Attribute Details
#removed_associations ⇒ Object (readonly)
Returns the value of attribute removed_associations
39 40 41 |
# File 'lib/mxrb/runtime/schema_migrator.rb', line 39 def removed_associations @removed_associations end |
#removed_attributes ⇒ Object (readonly)
Returns the value of attribute removed_attributes
39 40 41 |
# File 'lib/mxrb/runtime/schema_migrator.rb', line 39 def removed_attributes @removed_attributes end |
#removed_entities ⇒ Object (readonly)
Returns the value of attribute removed_entities
39 40 41 |
# File 'lib/mxrb/runtime/schema_migrator.rb', line 39 def removed_entities @removed_entities end |
Instance Method Details
#changes ⇒ Object
46 |
# File 'lib/mxrb/runtime/schema_migrator.rb', line 46 def changes = [*removed_entities, *removed_attributes, *removed_associations].freeze |
#destructive? ⇒ Boolean
42 43 44 |
# File 'lib/mxrb/runtime/schema_migrator.rb', line 42 def destructive? removed_entities.any? || removed_attributes.any? || removed_associations.any? end |