obfuscurity / judy

Bespoke service for reviewing CFP submissions
http://obfuscurity.github.io/judy
Other
25 stars 6 forks source link

Deleting Abstracts Generates PG::ForeignKeyViolation #26

Open tavisto opened 9 years ago

tavisto commented 9 years ago

When trying to delete an Abstract the following error is reported

PG::ForeignKeyViolation: ERROR: update or delete on table "abstracts" violates foreign key constraint "scores_abstract_id_fkey" on table "scores" DETAIL: Key (id)=(3) is still referenced from table "scores".

It appears that the models do not do a cascading delete.

obfuscurity commented 9 years ago

Yup, encountered this myself recently. Thanks for opening an issue for it.

Jason Dixon Sent from my iPhone

On Feb 2, 2015, at 9:27 PM, Tavis Aitken notifications@github.com wrote:

When trying to delete an Abstract the following error is reported

PG::ForeignKeyViolation: ERROR: update or delete on table "abstracts" violates foreign key constraint "scores_abstract_id_fkey" on table "scores" DETAIL: Key (id)=(3) is still referenced from table "scores".

It appears that the models do not do a cascading delete.

— Reply to this email directly or view it on GitHub.