We're updating the issue view to help you get more done. 

Inherited foreign keys which reference a non primary key column incorrectly reference the primary key column

Description

If a table inherits foreign keys which reference a non primary key column then the generated foreign incorrectly references the primary key column.

This is because the referenced columns from the included table are not passed to the call to create the foreign key in the DenormailzedTable class.

Environment

None

Status

Assignee

Brett Meyer

Reporter

Chris Manning

Components

Fix versions

Affects versions

3.5.6

Priority

Critical