Sha256: 89bac225171550a915e2acc9fcf9791dc3981319f60598e136c5dc7b67e54753
Contents?: true
Size: 507 Bytes
Versions: 177
Compression:
Stored size: 507 Bytes
Contents
class CreatePDAssessments < ActiveRecord::Migration[5.0] def change create_table :pd_assessments do |t| t.references :patient, null: false, foreign_key: true, index: true t.jsonb :document t.references :created_by, index: true, null: false t.references :updated_by, index: true, null: false t.timestamps null: false end add_foreign_key :pd_assessments, :users, column: :created_by_id add_foreign_key :pd_assessments, :users, column: :updated_by_id end end
Version data entries
177 entries across 177 versions & 1 rubygems