app/models/patient.rb
# == Schema Information
#
# Table name: patients
#
# id :integer not null, primary key
# name :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#
class Patient < ApplicationRecord
has_many :appointments
has_many :physicians, through: :appointments
end