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

Version Path
renalware-core-2.0.84 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.83 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.82 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.81 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.80 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.79 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.78 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.77 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.76 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.75 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.74 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.73 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.72 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.71 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.70 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.69 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.68 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.67 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.64 db/migrate/20170524134229_create_pd_assessments.rb
renalware-core-2.0.63 db/migrate/20170524134229_create_pd_assessments.rb