How to model system with different types of users?
问题 I am working on a restaurant franchise app. I've only ever had to use a User model and has secure password. class User < ActiveRecord::Base has_secure_password Now I would have different types of users with different access rights and reports: franchisor user (head office) restaurant owner / franchisee manager waiter What is a recommended way to set up the models/classes? Would I create a model for each and give each has_secure_password or would I put everyone into the user model and assign