fixed ForeignKey in the schema migration