Sha256: 09f3365a9f7f5a3a20f7ddd4b1045d88767db67203c4e150ed0a3f80a67aa6d4

Contents?: true

Size: 633 Bytes

Versions: 1

Compression:

Stored size: 633 Bytes

Contents

class CreateTenaDcmsPrescriptions < ActiveRecord::Migration[7.1]
  def change
    create_table :tena_dcms_prescriptions do |t|
      t.date :date, default: Date.today
      t.string :doctor_note
      t.string :drug_information
      t.references :doctor,
                   null: false,
                   index: { name: 'doctor_on_ps_indx' },
                   foreign_key: { to_table: :tena_dcms_doctors }
      t.references :patient,
                   null: false,
                   index: { name: 'patient_on_ps_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/20240730115006_create_tena_dcms_prescriptions.rb