Rails 6.1 adds option if_exist to remove_index function.If this option is set to true Rails will not raise error when index not found in database.