Being new to Rails and Active record could someone please check my
I am building a trouble ticket system for my company. Simply put a
client has many users. Those users can create trouble tickets. Each
trouble ticket can have many journals that track the progress of the
ticket. An employee (of our company) can take ownership of a trouble
ticket to solve the problem.
As you can see from the diagram the employees and users table looks
identical. Is this something that I can acomplish with singe table
inheritance, thus creating a model for employees and one for users?
Also is my Active record text correct in your opinion? I would like to
be able to do things like:
client = Client.find(params[:id])
user = User.find(params[:id])
ticket = Ticket.find(params[:id])
employee = Employee.find(“John S.”)
Any help would be fantastic!