I'm looking to add an edited_at field on comments etc in a Rails 5 app (only shown if it has been edited). I know I can compare created_at and updated_at to check if the comment has been edited but it seems like a hit on the db if there are a lot of comments.
Should I add an edited at boolean to the table and update it after edit? Or am I as well to just compare created_at and updated_at? Or is there some mechanism I can use that makes more sense than either of these? Johnny -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9b869ed7653b9f4bcedea7b60a467926%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.

