Exception: Mxrb::Runtime::UnsafeSchemaMigrationError
- Inherits:
-
StandardError
- Object
- StandardError
- Mxrb::Runtime::UnsafeSchemaMigrationError
- Defined in:
- lib/mxrb/runtime/schema_migrator.rb
Overview
Raised before DDL when an evolution cannot preserve existing data safely.
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
Instance Method Summary collapse
-
#initialize(message, changes: []) ⇒ UnsafeSchemaMigrationError
constructor
A new instance of UnsafeSchemaMigrationError.
Constructor Details
#initialize(message, changes: []) ⇒ UnsafeSchemaMigrationError
Returns a new instance of UnsafeSchemaMigrationError.
53 54 55 56 |
# File 'lib/mxrb/runtime/schema_migrator.rb', line 53 def initialize(, changes: []) @changes = changes.freeze super() end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
51 52 53 |
# File 'lib/mxrb/runtime/schema_migrator.rb', line 51 def changes @changes end |