title: Rails 5 - Creating two new Models Inheriting from a base Model
body: <p>Lets say that I have an <code>User</code> model with its attributes (first_name, last_name, etc) and I want to create two new models <code>Teacher</code> and <code>Student</code>. </p>
  
  <p>They will inherit the <code>User</code> model attributes, and also, they will have specific attributes. For instance, the <code>Student</code> model will have a <code>file</code> attribute, and the <code>Teacher</code> model will have <code>subject</code> attribute.</p>
  
  <p>I was reading about STI (Single Table Inheritance) and Polymorphic relationships.</p>
  
  <p>What should I look for to accomplish this? Do you have any example to show?</p>