Skip to content

Arguments for remove_concurrent_index_by_name

  • remove_concurrent_index_by_name accepts the index name as the second argument. But sometimes we give keyword argument such as name: INDEX_NAME. See some examples !36029 (merged)

The reason could be that remove-concurrent-index accepts arguments this way and some times we are mislead.

Solutions

  1. Allow remove_concurrent_index_by_name to accept name: keyword arguments.
  2. Raise an error whenever a name: keyword argument is used remove_concurrent_index_by_name
  3. A rubocop rule
Edited by Alper Akgun