I am trying to insert values into my comments table and I am getting a error. Its saying that I can not add or update child row and I have no idea what that means.
m
Maybe you have some rows in the table that you want to create de FK.
Run the migration with foreign_key_checks OFF Insert only those records that have corresponding id field in contents table.