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.84 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.83 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.82 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.81 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.80 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.79 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.78 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.77 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.76 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.75 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.74 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.73 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.72 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.71 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.70 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.69 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.68 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.67 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.64 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.63 db/migrate/20151111194419_create_transplant_recipient_operations.rb