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