Sha256: 8d32a7df205fbb1e44e6bb8250424a002e9faecd16299e5936eb52a7029b6ac1
Contents?: true
Size: 431 Bytes
Versions: 98
Compression:
Stored size: 431 Bytes
Contents
class AddUniqueIndexesToLocalPatientIds < ActiveRecord::Migration[5.1] def change within_renalware_schema do columns = %i( local_patient_id local_patient_id_2 local_patient_id_3 local_patient_id_4 local_patient_id_5 ) columns.each{ |column| remove_index(:patients, column) } columns.each{ |column| add_index(:patients, column, unique: true) } end end end
Version data entries
98 entries across 98 versions & 1 rubygems