Sha256: 01b983e26d6bd35984285cbccffb5dec702d9cb5155d83ad28bb1ef5ab940f79

Contents?: true

Size: 745 Bytes

Versions: 4

Compression:

Stored size: 745 Bytes

Contents

# This migration comes from spotlight (originally 20131119213142)
class CreateSpotlightPages < ActiveRecord::Migration
  def change
    create_table :spotlight_pages do |t|
      t.string     :title
      t.string     :type
      t.string :slug
      t.string :scope
      t.text       :content
      t.integer    :weight, default: 50
      t.boolean    :published
      t.references :exhibit
      t.integer :created_by_id
      t.integer :last_edited_by_id
      t.timestamps
      t.integer :parent_page_id
      t.boolean :display_sidebar
      t.boolean :display_title
    end
    add_index :spotlight_pages, :exhibit_id
    add_index :spotlight_pages, :parent_page_id
    add_index :spotlight_pages, [: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/20150303163359_create_spotlight_pages.spotlight.rb
blacklight-spotlight-0.3.0 spec/internal/db/migrate/20150302231320_create_spotlight_pages.spotlight.rb
blacklight-spotlight-0.2.0 spec/internal/db/migrate/20150120185718_create_spotlight_pages.spotlight.rb
blacklight-spotlight-0.1.0 spec/internal/db/migrate/20140603144404_create_spotlight_pages.spotlight.rb