Check out example codes for "how to inherit active record to a class ruby". It will help you in understanding the concepts better.

Code Example 1

class CreateStudents < ActiveRecord::Migration[5.1]
end

Learn ReactJs, React Native from akashmittal.com