Sha256: 7010d15140ea9450d60f50b87d4f105b6f0197a3ce7a7da3af1416d6b6872bac
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
class AddUniqueUrnIndexes < ActiveRecord::Migration[4.2] # indexes were not made to enforce uniqueness def change remove_index :g5_updatable_clients, :urn if index_exists? :g5_updatable_clients, :urn add_index :g5_updatable_clients, :urn, unique: true remove_index :g5_updatable_locations, :urn if index_exists? :g5_updatable_locations, :urn add_index :g5_updatable_locations, :urn, unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g5_updatable-1.0.2.pre.1 | db/migrate/20170507000000_add_unique_urn_indexes.rb |