Fixes #7998 - DockerTag foreign_key was wrong