Exception: Mxrb::Runtime::UnsafeSchemaMigrationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mxrb/runtime/schema_migrator.rb

Overview

Raised before DDL when an evolution cannot preserve existing data safely.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, changes: [])
  @changes = changes.freeze
  super(message)
end

Instance Attribute Details

#changesObject (readonly)

Returns the value of attribute changes.



51
52
53
# File 'lib/mxrb/runtime/schema_migrator.rb', line 51

def changes
  @changes
end