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