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.0.62 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.61 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.60 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.58 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.57 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.56 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.55 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.54 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.53 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.52 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.51 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.50 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.48 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.47 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.46 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.45 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.44 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.43 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.42 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.41 db/migrate/20151111194419_create_transplant_recipient_operations.rb