Displaying 1 result from an estimated 1 matches for "fk_sections_cont".
2006 May 28
1
ActiveRecord: FK constraints problem
...tents_sections".
: DELETE FROM contents
WHERE id = 7"
And when I trying to remove Content which belongs to "default_content" of some Section
I have an error:
PGError: ERROR: update or delete on "contents" violates foreign key constraint "fk_sections_contents" on "sections"
DETAIL: Key (id)=(8) is still referenced from table "sections".
: DELETE FROM contents
WHERE id = 8
I simply don''t understand why rails can''t determine that relation exists and can''t
remove records fro...