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.147 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.146 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.145 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.144 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.143 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.142 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.141 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.140 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.139 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.138 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.137 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.136 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.135 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.134 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.133 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.132 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.131 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.130 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.129 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.128 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb