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.5.0.3 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta6 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta5 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta4 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta3 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.5.0.2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.5.0.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.5.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.4.4.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.4.4 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.4.3 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.4.2.2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.4.2.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.4.2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.4.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.4.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.3.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.2.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.1.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb