railstack/go-on-rails

View on GitHub
app/models/patient.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == 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