You have already rated this question

Questions tagged with 2unique

2 answers

1 vote

Asked by sebb86, on 12/1/10 in Models

How to validate two UNIQUE fields together? (solution at the top)

Solution:

google groups link

Hello,

my table rooms contains three fields: id, building_id and room.

Building_id and room have to be UNIQUE together, because room 9 is in building 1 only one time but room 9 can also conained in building 2.

The...

<< previous next >>