Optional
concurrentlyOptional
fieldsThe fields to index.
Optional
nameThe name of the index. Defaults to model name + _ + fields concatenated
Optional
operatorIndex operator type. Postgres only
Optional
parserFor FULLTEXT columns set your parser
Optional
prefixPrefix to append to the index name.
Optional
typeIndex type. Only used by mysql. One of UNIQUE
, FULLTEXT
and SPATIAL
Optional
uniqueShould the index by unique? Can also be triggered by setting type to UNIQUE
false
Optional
usingThe method to create the index by (USING
statement in SQL).
BTREE and HASH are supported by mysql and postgres.
Postgres additionally supports GIST, SPGIST, BRIN and GIN.
Optional
whereOptional where parameter for index. Can be used to limit the index to certain rows.
Generated using TypeDoc
PostgreSQL will build the index without taking any write locks. Postgres only.
Default
false