Sha256: d829b35bf2251a90a04a8b5640e2e3354e247eea2078271d08581bb7380e1905

Contents?: true

Size: 632 Bytes

Versions: 1

Compression:

Stored size: 632 Bytes

Contents

class CreateTenaDcmsLabTests < ActiveRecord::Migration[7.1]
  def change
    create_table :tena_dcms_lab_tests do |t|
      t.date :date, default: Date.today
      t.string :result
      t.string :status
      t.references :lab_technician,
                   null: true,
                   index: { name: 'lab_technician_on_lt_indx' },
                   foreign_key: { to_table: :tena_dcms_lab_technicians }
      t.references :patient,
                   null: false,
                   index: { name: 'patient_on_lt_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/20240730120209_create_tena_dcms_lab_tests.rb