Sha256: ed56f79d383aac6b0dd3597b2d52e015690532ef61d6da1e3635ad7a1647685e
Contents?: true
Size: 688 Bytes
Versions: 16
Compression:
Stored size: 688 Bytes
Contents
class CreatePatientsMasterIndex < ActiveRecord::Migration[5.2] def change create_table :patient_master_index do |t| t.references :patient, null: true, foreign_key: true t.timestamps null: false t.string :nhs_number, index: true t.string :hospital_number, index: true t.string :title t.string :family_name t.string :middle_name t.string :given_name t.string :suffix t.string :sex t.date :born_on t.datetime :died_at t.string :ethnicity t.string :practice_code t.string :gp_code t.timestamps null: false end add_index :patient_master_index, [:family_name, :given_name] end end
Version data entries
16 entries across 16 versions & 1 rubygems