class Order < ActiveRecord::Base
…
“This Order class is defined to be a subclass of the ApplicationRecord class.”
Should the class definition not read:
class Order < ApplicationRecord
as ApplicationRecord should already be defined as inheriting from ActiveRecord::Base in the file application_record.rb located in the models folder?