Sha256: e3087cfaa81bfb870478bc2fbecf8ea6f8c52dd7081b23c46292cb4b468ba63f

Contents?: true

Size: 313 Bytes

Versions: 62

Compression:

Stored size: 313 Bytes

Contents

class AddUniqueIndexToSidecars < ActiveRecord::Migration[5.0]
  def up
    add_index(:spotlight_solr_document_sidecars, [:exhibit_id, :document_type, :document_id], unique: true, name: :by_exhibit_and_doc)
  end

  def down
    remove_index(:spotlight_solr_document_sidecars, name: :by_exhibit_and_doc)
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.3 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.rc6 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.rc5 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.rc4 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.rc3 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.rc2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.rc1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.10 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.9 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.8 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.7 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.6 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.5 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.4 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.3 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.0.0.alpha.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb