Sha256: 0d8d02d1a9a68983881ed05a780138def8b698fef56a43edd247250296e091b2

Contents?: true

Size: 466 Bytes

Versions: 11

Compression:

Stored size: 466 Bytes

Contents

class ChangePathRequestConsultantId < ActiveRecord::Migration[5.2]
  def change
    within_renalware_schema do
      remove_reference(
        :pathology_requests_requests,
        :consultant,
        foreign_key: { to_table: :users },
        index: true
      )
      add_reference(
        :pathology_requests_requests,
        :consultant,
        foreign_key: { to_table: :renal_consultants },
        index: true,
        null: true
      )
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.121 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.120 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.119 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.118 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.117 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.116 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.115 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.113 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.112 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.111 db/migrate/20190925161724_change_path_request_consultant_id.rb
renalware-core-2.0.110 db/migrate/20190925161724_change_path_request_consultant_id.rb