Sha256: f792a81eceb393330c27524def33638d1ba9b7143e40bc7dfb7bd29a9a869af9

Contents?: true

Size: 371 Bytes

Versions: 72

Compression:

Stored size: 371 Bytes

Contents

class RemoveLocalPatientIdUniqueIdx < ActiveRecord::Migration[5.1]
  def change
    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

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc10 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc9 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc8 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc7 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc6 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc5 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc4 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc3 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.rc1 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.beta12 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb
renalware-core-2.0.0.pre.beta11 db/migrate/20171109084751_remove_local_patient_id_unique_idx.rb