OptionalattributeOptionalconcurrentlyPostgreSQL will build the index without taking any write locks. Postgres only.
OptionalincludeNon-key columns to be added to the lead level of the nonclustered index.
OptionalmsgThe message to display if the unique constraint is violated.
OptionalnameThe name of the index. Defaults to model name + _ + fields concatenated
OptionaloperatorIndex operator type. Postgres only
OptionalparserFor FULLTEXT columns set your parser
OptionalprefixPrefix to append to the index name.
OptionaltypeIndex type. Only used by mysql. One of UNIQUE, FULLTEXT and SPATIAL
OptionaluniqueShould the index by unique? Can also be triggered by setting type to UNIQUE
OptionalusingThe 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.
OptionalwhereOptional where parameter for index. Can be used to limit the index to certain rows.
Configures the options for this index attribute.