﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27437	Can't create GinIndex on ArrayField(CITextField)	Davide Setti	Mads Jensen	"I have a model like:

{{{#!python
class MyModel(models.Model):
    column = ArrayField(
        CITextField(max_length=255),
    )

    class Meta:
        indexes = [
            GinIndex(fields=['column'], name='mygin')
        ]
}}}

Migration fails because:

{{{
django.db.utils.ProgrammingError: data type citext[] has no default operator class for access method ""gin""
HINT:  You must specify an operator class for the index or define a default operator class for the data type.
}}}

full trace on this [https://gist.github.com/vad/7f0414b8a52bb288f64f6c1df6006b35 gist]. To solve this issue an Operator Class [http://stackoverflow.com/a/20102665/690696 must be created]"	Bug	closed	contrib.postgres	dev	Normal	wontfix	postgres, indexes, gin, citext, arrays		Someday/Maybe	1	0	0	0	0	0
