Sha256: 992f4831c149b3052845e65a67bc51e491667b082c8b1df6b56792164d4b3626

Contents?: true

Size: 404 Bytes

Versions: 18

Compression:

Stored size: 404 Bytes

Contents

# This migration comes from g5_updatable (originally 20170507000000)
class AddUniqueUrnIndexes < ActiveRecord::Migration[4.2]
  # indexes were not made to enforce uniqueness
  def change
    remove_index :g5_updatable_clients, :urn
    add_index :g5_updatable_clients, :urn, unique: true
    remove_index :g5_updatable_locations, :urn
    add_index :g5_updatable_locations, :urn, unique: true

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.4.rc.3 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.4.rc.2 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.4.rc.1 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.2 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.2.pre.1 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.2.rc.5 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.2.rc.4 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.2.rc.3 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.2.rc.2 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.2.rc.1 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.1 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.1.0 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.0.0 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.0.0.pre.4 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.0.0.pre.3 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.0.0.pre.2 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb
g5_authenticatable-1.0.0.pre.1 spec/dummy/db/migrate/20170613201436_add_unique_urn_indexes.g5_updatable.rb