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

Version Path
renalware-core-2.0.127 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.126 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.125 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.124 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.123 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.121 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.120 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.119 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.118 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.117 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.116 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.115 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.113 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.112 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.111 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.110 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.109 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.108 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.106 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.105 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb