method

disable_index

disable_index(index_name)
public

Disables an index not to be used by query optimizers.

t.disable_index(:email)

Note: only supported by MySQL version 8.0.0 and greater, and MariaDB version 10.6.0 and greater.

See {connection.disable_index}[rdoc-ref:SchemaStatements#disable_index]