Answer by Marcelo Ribeiro for Building a Twitter like feed in rails
I would suggest you go with a single model: Tweet. It would also have children (or retweets if you want to call it that way). A retweet is still a tweet.class Tweet has_many :retweets, as: :parent,...
View ArticleBuilding a Twitter like feed in rails
Currently, I have two models, tweet model and retweet model. They are connected via polymorphic association, because comments and retweets itself can be retweeted too.Tweet modelhas_many :retweets, as:...
View Article
More Pages to Explore .....