On Mon, Jan 2, 2017 at 3:33 AM, Frank Millman <fr...@chagford.com> wrote:
> > CONSTRAINT _prod_tax_code_2 FOREIGN KEY (category_id, tax_code) > REFERENCES tax_codes (category_id, code)); > This is typical solution to this modelling problem. If you need to do other stuff (introduce redundancies) to make it play nice with the ORM then that is valid if unfortunate. David J.