class Pet < ApplicationRecord belongs_to :owner, class_name: 'User' end