Sha256: fe10f4d8995315bb4a2c73f1d4ec06268fdf98b86b49cb2b134444705735fed0
Contents?: true
Size: 572 Bytes
Versions: 176
Compression:
Stored size: 572 Bytes
Contents
class CreatePatientAlerts < ActiveRecord::Migration[5.1] def change create_table :patient_alerts do |t| t.references :patient, null: false, foreign_key: true t.text :notes t.boolean :urgent, default: false, null: false t.integer :created_by_id, index: true, null: false t.integer :updated_by_id, index: true, null: false t.datetime :deleted_at t.timestamps null: false end add_foreign_key :patient_alerts, :users, column: :created_by_id add_foreign_key :patient_alerts, :users, column: :updated_by_id end end
Version data entries
176 entries across 176 versions & 1 rubygems