railstack/go-on-rails

View on GitHub
app/models/appointment.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: appointments
#
#  id               :integer          not null, primary key
#  appointment_date :datetime
#  physician_id     :integer
#  patient_id       :integer
#  created_at       :datetime         not null
#  updated_at       :datetime         not null
#

class Appointment < ApplicationRecord
  belongs_to :physician
  belongs_to :patient
end