Sha256: 0f2e6339bb4d6a88a000cdff88cc4842392da3b94a298df007ecf568322fe882

Contents?: true

Size: 538 Bytes

Versions: 103

Compression:

Stored size: 538 Bytes

Contents

class CreateSpotlightSearches < ActiveRecord::Migration[4.2]
  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

103 entries across 103 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.3.5 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.3.4 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.3.3 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.3.2 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.3.1 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.3.0 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.2.0 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.1.2 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.1.1 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.1.0 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.0.3 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.0.2 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.0.1 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-4.0.0 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-3.6.0.beta10 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-3.6.0.beta9 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-3.6.0.beta8 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-3.5.0.4 db/migrate/20140130155151_create_spotlight_searches.rb
blacklight-spotlight-3.6.0.beta7 db/migrate/20140130155151_create_spotlight_searches.rb