It depends on how you insert records in familia_risiego

On Jul 29, 7:51 am, web2py noob <[email protected]> wrote:
> Hi,
>
> I have 3 tables:
>  * db.familia
>  * db.familia_riesgo
>  * db.riesgo
>
> db.familia_riesgo has just familia.id and riesgo.id (the id of
> db.familia and db.riesgo).
>
> This is a many to many relationship between db.familia and db.riesgo
> tables.
>
> How can I validate that the same riesgo.id doesn't repeat for the same
> familia.id in db.familia_riesgo?
>
> Help is very much appreciated.
>
> regards.

Reply via email to