Sha256: 686a11d485e1f008ca31436df6387b3f24e5109ae41e2f2cf5b1bf4d7178a937

Contents?: true

Size: 799 Bytes

Versions: 177

Compression:

Stored size: 799 Bytes

Contents

class CreateTransplantRecipientOperations < ActiveRecord::Migration[4.2]
  def change
    create_table :transplant_recipient_operations do |t|
      t.belongs_to :patient, index: true, foreign_key: true

      t.date :performed_on, null: false
      t.time :theatre_case_start_time, null: false
      t.datetime :donor_kidney_removed_from_ice_at, null: false
      t.string :operation_type, null: false
      t.references :hospital_centre, foreign_key: true, null: false
      t.datetime :kidney_perfused_with_blood_at, null: false
      t.integer :cold_ischaemic_time, null: false
      t.integer :warm_ischaemic_time, null: false
      t.text :notes

      t.jsonb :document

      t.timestamps null: false
    end

    add_index :transplant_recipient_operations, :document, using: :gin
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

Version Path
renalware-core-2.1.1 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.1.0 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.167 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.166 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.165 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.164 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.163 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.162 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.161 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.160 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.159 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.158 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.157 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.156 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.155 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.153 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.152 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.151 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.149 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.148 db/migrate/20151111194419_create_transplant_recipient_operations.rb