Arguments for remove_concurrent_index_by_name
-
remove_concurrent_index_by_nameaccepts theindex nameas the second argument. But sometimes we give keyword argument such asname: 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
- Allow
remove_concurrent_index_by_nameto acceptname:keyword arguments. - Raise an error whenever a
name:keyword argument is usedremove_concurrent_index_by_name - A rubocop rule
Edited by Alper Akgun