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?