I’m using Devise and its default
User class for authentication and common information like name, etc.
I have 4 user types:
Student, each inheriting from
class AdminsController < UsersController ... # custom methods for admins end
I need to add different attributes for each user types; some users have avatars, teachers have
substitute boolean, students have
Since all the users are in the
User table with a
type column, how do I go about adding specific attributes to different user types?
Have I made a problem for myself doing it this way? Should I be thinking of separate models for each user type?