class SchoolMove

Schema Information

Table name: school_moves

id            :bigint           not null, primary key
academic_year :integer          not null
source        :integer          not null
created_at    :datetime         not null
updated_at    :datetime         not null
patient_id    :bigint           not null
school_id     :bigint           not null

Indexes

index_school_moves_on_patient_id                (patient_id) UNIQUE
index_school_moves_on_patient_id_and_school_id  (patient_id,school_id)
index_school_moves_on_school_id                 (school_id)

Foreign Keys

fk_rails_...  (patient_id => patients.id)
fk_rails_...  (school_id => locations.id)