Currently I have two types of users, Doctors and Patients. And both need to sign in. The database figures who has signed in. And depending on that a different web page is displayed. I have defined two different controllers DoctorsController and PatientsController. But Patients and Doctors are only present in the users table. If in the future I had to separate them into their own different tables then will I have to use polymorphic associations between Users and Doctors?
I mean having a users table which stores the password, name,email etc. and then putting doctor related info in the doctors table.
Will i be using polymorphic associations because a user could be a doctor or a patient but not both
Or will have to put a foriegn id in the doctors tables to link them back to the users table?