Class: ROM::SQL::Migration::SchemaDiff::IndexAdded Private
- 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 Attribute Summary
Attributes inherited from IndexDiff
Instance Method Summary collapse
-
#options ⇒ Object
private
rubocop:disable Metrics/AbcSize.
Methods inherited from IndexDiff
#attributes, #initialize, #name
Constructor Details
This class inherits a constructor from ROM::SQL::Migration::SchemaDiff::IndexDiff
Instance Method Details
#options ⇒ Object
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.
rubocop:disable Metrics/AbcSize
136 137 138 139 140 141 142 143 |
# File 'lib/rom/sql/migration/schema_diff.rb', line 136 def = {} [:name] = index.name unless index.name.nil? [:unique] = true if index.unique? [:type] = index.type unless index.type.nil? [:where] = index.predicate unless index.predicate.nil? end |