Sha256: 2473107d26b29205a9b0afa6c8fa20820ba45836fb4844ffb03aa710c9a49e2a

Contents?: true

Size: 233 Bytes

Versions: 45

Compression:

Stored size: 233 Bytes

Contents

class AddNamedConsultantToPatients < ActiveRecord::Migration[5.2]
  def change
    add_reference(
      :patients,
      :named_consultant,
      foreign_key: { to_table: :users },
      index: true,
      null: true
    )
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

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