Sha256: 26e70595dd092907c4176ff5ce085a4eb5704eda46bbce951062345c17942050

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

class CreateTenaDcmsAppointments < ActiveRecord::Migration[7.1]
  def change
    create_table :tena_dcms_appointments do |t|
      t.date :date
      t.integer :status
      t.string :remarks
      t.references :doctor,
                   null: false,
                   index: { name: 'doctor_on_app_indx' },
                   foreign_key: { to_table: :tena_dcms_doctors }
      t.references :patient,
                   null: false,
                   index: { name: 'patient_on_app_indx' },
                   foreign_key: { to_table: :tena_dcms_patients }

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tena_dcms-0.1.0 db/migrate/20240730102950_create_tena_dcms_appointments.rb