Consider creating a new migration dropping our current foreign keys that do ON DELETE CASCADE. This is what we have currently on db/migrations/20220603011001_initial_migration/migration.sql:
-- AddForeignKey
ALTER TABLE "_ProjectsToSkills" ADD CONSTRAINT "_ProjectsToSkills_A_fkey" FOREIGN KEY ("A") REFERENCES "Projects"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "_ProjectsToSkills" ADD CONSTRAINT "_ProjectsToSkills_B_fkey" FOREIGN KEY ("B") REFERENCES "Skills"("id") ON DELETE CASCADE ON UPDATE CASCADE;
Consider creating a new migration dropping our current foreign keys that do
ON DELETE CASCADE
. This is what we have currently ondb/migrations/20220603011001_initial_migration/migration.sql
: