Changeset 880 for branches


Ignore:
Timestamp:
Apr 11, 2011, 3:31:52 PM (14 years ago)
Author:
gav
Message:

Image unique index fix, by John Yesberg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/grailsUpgrade/grails-app/domain/Image.groovy

    r182 r880  
    1313
    1414    static mapping = {
    15         picture index: 'images_index', unique: true
    16         size index: 'images_index', unique: true
    1715        data type: 'binary'
    1816    }
     
    2018    static constraints = {
    2119        data(maxSize: MAX_SIZE)
     20        size(unique:'picture')
    2221    }
    2322
Note: See TracChangeset for help on using the changeset viewer.