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