1
I am developing an application in Rails. I would like to know how to model the comments part. There is a table for the calls( Helpdesk system ), and the same relates to the history table, which are the comments. My question is, how can I make sure I find out who made a comment, because the call table relates to the call table_employees, and to the users table, and I need to filter who commented.
You already have part of the structure ready by what you described. I’m going to put the image of a simple structure: http://postimg.org/image/ejjvte03r/ There are four tables: called / history / user / called_historico, called "link" the history the calls, and with the history id you can retrieve the user later. It’s just the idea, lack implementation, because I don’t know how is the YOUR current structure. I hope that me have correctly understood your need too.
– Rafael Withoeft