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.40 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.39 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.38 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.37 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.36 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.35 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.34 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.33 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.32 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.31 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.30 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.28 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.27 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.26 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.25 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.24 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.23 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.22 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.21 db/migrate/20151111194419_create_transplant_recipient_operations.rb
renalware-core-2.0.20 db/migrate/20151111194419_create_transplant_recipient_operations.rb