複数の列に対して名前付き一意制約を作成するにはどうすればよいですか?
私は3つのクラスを持っています:
class Descriptor {
// some columns
}
class Protein {
// some columns
}
class DescriptorValue {
// some columns
static belongsTo = [protein: Protein, descriptor: Descriptor]
static constraints = {
protein(unique:['descriptor'])
}
}
GORM は、環境ごとに異なる自動生成された名前でインデックスを作成します。その名前を指定するにはどうすればよいですか?