Sha256: 413f9c19b482a81ad6ea0b7baae55566163496dabb3ef4f9cb7a2e19c4ae1780

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

# This migration comes from spotlight (originally 20140130155151)
class CreateSpotlightSearches < ActiveRecord::Migration
  def change
    create_table :spotlight_searches do |t|
      t.string :title
      t.string :slug
      t.string :scope
      t.text :short_description
      t.text :long_description
      t.text :query_params
      t.integer :weight
      t.boolean :on_landing_page
      t.string :featured_image
      t.references :exhibit
      t.timestamps
    end

    add_index :spotlight_searches, :exhibit_id
    add_index :spotlight_searches, [:slug,:scope], unique: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.3.1 spec/internal/db/migrate/20150303163363_create_spotlight_searches.spotlight.rb
blacklight-spotlight-0.3.0 spec/internal/db/migrate/20150302231324_create_spotlight_searches.spotlight.rb
blacklight-spotlight-0.2.0 spec/internal/db/migrate/20150120185722_create_spotlight_searches.spotlight.rb
blacklight-spotlight-0.1.0 spec/internal/db/migrate/20140603144408_create_spotlight_searches.spotlight.rb