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