Sha256: aed714945f814ad08f9a7e7a5d27d6ee805cf2ba6e495a70ab0af98f951fd5b8
Contents?: true
Size: 867 Bytes
Versions: 74
Compression:
Stored size: 867 Bytes
Contents
class CreateRenalAKIAlerts < ActiveRecord::Migration[5.1] def change create_table :renal_aki_alerts do |t| t.references :patient, null: false, foreign_key: true, index: true t.references :action, foreign_key: { to_table: :renal_aki_alert_actions }, index: true, null: true t.references :hospital_ward, foreign_key: { to_table: :hospital_wards }, index: true, null: true t.boolean :hotlist, null: false, default: false, index: true t.string :renal_aki_alerts, :action, :string, index: true t.text :notes t.references :updated_by, foreign_key: { to_table: :users }, index: true t.references :created_by, foreign_key: { to_table: :users }, index: true t.timestamps null: false end end end
Version data entries
74 entries across 74 versions & 1 rubygems