module SchemaPlus::Indexes::ActiveRecord::Migration::CommandRecorder

Public Instance Methods

invert_add_index(args) click to toggle source

inversion of add_index will be remove_index. add if_exists option for cases where the index doesn't actually exist

Calls superclass method
# File lib/schema_plus/indexes/active_record/migration/command_recorder.rb, line 8
def invert_add_index(args)
  super.tap { |(command, (arg, options))|
    options[:if_exists] = true
  }
end