The task
Create a method that deletes all spam posts
in order to do this task, we need to have Post with a status of spam
then we can use symbol to proc with collect method to remove all the spam posts
Post.all.where(status: "spam").collect(&:destroy)
Hey man, a little context about these snippets would help a lot. Especially those who are seeing your posts for the first time.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks
Nice post
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Ops thanks for this story
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for share,nice post.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Could you please explain how this works? Thanks
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
upvote, comment plz
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
hey @bilal-haider that's an amazing task. I am impressed by your programming skills. Definitely we will perform this task.
looking forward for more posts from you.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks :) will keep posting.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
nice post
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You get a resteem from getupvote.
Follow me @getupvote and get a upvote and resteem thank u
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit