mardi 22 décembre 2015

Rails: validate uniqueness of two columns (together)

I have a Release model with medium and country columns (among others). There should not be releases that share identical medium/country combinations.

How would I write this as a rails validation?

Aucun commentaire:

Enregistrer un commentaire