GORM DB index from plugin domain class not created
===

In my project, some of my domain classes live in an associated plugin. In order to speed up object look-up I am trying to create indices for one of these classes. 

I have followed the usual steps as described [here][1] in order to create the index, and now have the following plugin domain class:

        class ActionType implements Serializable{
            String name
            String description
    	    static constraints = {
		
    	    }

            static mapping = {
            	cache true
               	name column: 'name', index: 'name_Idx'
           }

        }

Now I would expect that the index would be created automatically with "dbCreate =  "create-drop". However, my mysql table definition is created like this:

        CREATE TABLE `action_type` (
	`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
	`version` BIGINT(20) NOT NULL,
	`description` VARCHAR(255) NOT NULL,
	`name` VARCHAR(255) NOT NULL,
	PRIMARY KEY (`id`)
        )
        COLLATE='utf8_general_ci'
        ENGINE=InnoDB
        ROW_FORMAT=DEFAULT
        AUTO_INCREMENT=28

I would expect a line:
         
        INDEX `name_Idx` (`name`)
after the primary key definition, but it is missing. 

When I create similar classes from within my main project I have no problems with index creation.Can anyone say if I need to do something special to make this work from a plugin?


  [1]: http://www.grails.org/doc/latest/guide/GORM.html#databaseIndices