Sha256: e7cf96e71189f61d863ed55515c45b8cfdaf3ff02656b25ad4cd0153cc5b413e
Contents?: true
Size: 428 Bytes
Versions: 98
Compression:
Stored size: 428 Bytes
Contents
class RemoveLocalPatientIdUniqueIdx < 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: false) } end end end
Version data entries
98 entries across 98 versions & 1 rubygems