Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

remove garbage dependencies ... #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

remove garbage dependencies ... #215

wants to merge 1 commit into from

Conversation

rodrigobaron
Copy link

After any story is removed, the app show garbages about the removed story. This happened because the dependencies of stories is loaded .. To correct that only put ":dependent => :destroy" in changests references on Story model.

@marnen
Copy link
Contributor

marnen commented Feb 8, 2014

Better yet, have a foreign key constraint ON DELETE CASCADE in the DB (the Foreigner gem will help with this).

@rodrigobaron
Copy link
Author

humm .. Thanks @marnen ...

@malclocke
Copy link

Re-opening as I think we will probably take this as is.

@malclocke malclocke reopened this Feb 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants