I Had created a migration to create a table called settings_synced then I created a new migration to create a table named settings_synced_status and finally I created a migration to reference table 1 with table two in the following way:
`alter table “public”.”settings_synced” ADD FOREIGN KEY (“status_id”) REFERENCES “public”.”settings_synced_status”(“status_id”);
today I am trying to understand when or why I need to add on cascade this kind of sentence:
ON DELETE CASCADE
`
Im expecting to get a better knowledge of cascade sentence
Sin lemas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.