I have a project that I am working on that has Posts
and Comments
. I link a comment to a post using a foreign key (postId). However, this foreign key was not added to my Comment class until after the first time I had built the project with the Comment class.
After adding the postId
field to the comment class, I attempted to run the project and create a comment. The project builds and runs fine, but when I attempt to create a comment, I get the error: table Comment has no column named postId
Is this some sort of migration issue within Vapor?