it is because one of your foreign keys is not set as primary key or unique in
referenced table.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/no-unique-constraint-matching-given-keys-for-referenced-table-tp2263411p5771066.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.