Sha256: be93c6c61ae2a46164df9c64abd2cf68599358e156aeeaeba7eb11ade5672833
Contents?: true
Size: 934 Bytes
Versions: 98
Compression:
Stored size: 934 Bytes
Contents
class CreateRenalAKIAlerts < ActiveRecord::Migration[5.1] def change within_renalware_schema do 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 end
Version data entries
98 entries across 98 versions & 1 rubygems