rails single table inheritance code example Example: how to inherit active record to a class ruby class CreateStudents < ActiveRecord::Migration[5.1] end