When the primary key column is altered, foreign keys of referencing models must be aware of a possible data type change as well and thus need to be re-rendered. Thanks Tim Graham for the report. Backport of cc22b009e05456e3d9cf3c152fe47fa27772be5e from master