Sha256: 8fe4e7b46f8d5c370edd9bfcf6891187716401b7adbd3b1a98df2ea8eafdeee7

Contents?: true

Size: 857 Bytes

Versions: 85

Compression:

Stored size: 857 Bytes

Contents

class CreateUKRDCTreatments < ActiveRecord::Migration[5.2]
  def change
    within_renalware_schema do
      create_table :ukrdc_treatments do |t|
        t.references :patient, foreign_key: true, index: true, null: false
        t.references :clinician, foreign_key: { to_table: :users }, index: true, null: true
        t.references :modality_code, foreign_key: { to_table: :ukrdc_modality_codes }, index: true, null: false
        t.references :modality, index: true, null: true
        t.references :modality_description, index: true, null: true, foreign_key: true
        t.references :hospital_centre, null: true, foreign_key: true, index: true
        t.references :hospital_unit, null: true, foreign_key: true, index: true
        t.date :started_on, null: false
        t.date :ended_on
        t.timestamps null: false
      end
    end
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
renalware-core-2.0.127 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.126 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.125 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.124 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.123 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.121 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.120 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.119 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.118 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.117 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.116 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.115 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.113 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.112 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.111 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.110 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.109 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.108 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.106 db/migrate/20190520091324_create_ukrdc_treatments.rb
renalware-core-2.0.105 db/migrate/20190520091324_create_ukrdc_treatments.rb