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-4.3.6 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.3.5 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.3.4 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.3.3 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.3.2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.3.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.3.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.2.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.1.2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.1.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.1.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.0.3 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.0.2 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.0.1 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-4.0.0 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta10 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta9 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta8 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.5.0.4 db/migrate/20191205112300_add_unique_index_to_sidecars.rb
blacklight-spotlight-3.6.0.beta7 db/migrate/20191205112300_add_unique_index_to_sidecars.rb