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