Sha256: c312a50c2efb629bf8e64ff520763be1893d535d25f3624df82c6ee83840002d

Contents?: true

Size: 637 Bytes

Versions: 177

Compression:

Stored size: 637 Bytes

Contents

class CreatePathologyObservationRequests < ActiveRecord::Migration[4.2]
  def change
    create_table :pathology_observation_requests do |t|
      t.string :requestor_order_number
      t.string :requestor_name, null: false
      t.datetime :requested_at, null: false
      t.belongs_to :patient, index: true, foreign_key: true, null: false

      t.timestamps null: false
    end

    add_reference :pathology_observation_requests, :description, references: :pathology_request_descriptions, index: true, null: false
    add_foreign_key :pathology_observation_requests, :pathology_request_descriptions, column: :description_id
  end
end

Version data entries

177 entries across 177 versions & 1 rubygems

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