Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Deleting a Post #32

Open
milezzz opened this issue Aug 14, 2016 · 4 comments
Open

Deleting a Post #32

milezzz opened this issue Aug 14, 2016 · 4 comments

Comments

@milezzz
Copy link

milezzz commented Aug 14, 2016

Thought this might be useful to someone. You can delete a post from the rails console with:

Post.find(POST_ID).destroy

Replace POST_ID with the numerical ID of your post.

I was hoping there was a method to delete a tag in the API but I don't see it.

@lalo2302
Copy link

Should this be a soft delete? Maybe to have a kind of trashcan for deleted projects in case the user wanted to recover them

@danleecreates
Copy link
Contributor

Soft delete would be a good idea

@hibiken
Copy link
Owner

hibiken commented Aug 22, 2016

I agree. If we can archive posts, that'd be great! Please create a PR for this if anyone ends up implementing this 👍

AjayBarot added a commit to AjayBarot/stories that referenced this issue Mar 19, 2017
1. Implemented archive functionality for post.
2. Implemented status flow process for post (user can move archived post to active).
3. Prevent post to hard delete.
@AjayBarot
Copy link
Contributor

@milezzz : Post.find(POST_ID).destroy we can use finder this way because of this gem friendly_id. Please refer this doc gem. @nearkingdom @kenny-hibino : Please review the pull request regarding this issue and provide your feedback and let me know If I miss any thing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants