Sha256: b94bec0c92fb28354cfcdf85f8257c9bc41f70dd7c2b987027bc160e4ba6b299
Contents?: true
Size: 964 Bytes
Versions: 73
Compression:
Stored size: 964 Bytes
Contents
class CreateConsults < ActiveRecord::Migration[5.1] def change create_table :admission_consults do |t| t.references :hospital_unit, foreign_key: true, index: true t.references :hospital_ward, foreign_key: true, index: true t.references :patient, foreign_key: true, index: true, null: false t.references :seen_by, foreign_key: { to_table: :users }, index: true t.date :started_on t.date :ended_on t.date :decided_on t.date :transferred_on t.string :transfer_priority t.string :aki_risk t.string :consult_type t.string :contact_number t.boolean :requires_aki_nurse, default: false, null: false t.text :description t.references :updated_by, foreign_key: { to_table: :users }, index: true, null: false t.references :created_by, foreign_key: { to_table: :users }, index: true, null: false t.datetime :deleted_at t.timestamps null: false end end end
Version data entries
73 entries across 73 versions & 1 rubygems