Sha256: 4f68d55b1ccc9f7c8a507d7201209b222b6f75684023f714e77773004bc72941

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

class CreateSpotlightPages < ActiveRecord::Migration
  def change
    create_table :spotlight_pages do |t|
      t.string     :title
      t.string     :type
      t.text       :content
      t.integer    :weight, :default => 0
      t.boolean    :published
      t.references :exhibit
      t.timestamps
      t.integer :parent_page_id
      t.boolean :display_sidebar
    end
    add_index :spotlight_pages, :exhibit_id
    add_index :spotlight_pages, :parent_page_id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-spotlight-0.0.1 db/migrate/20131119213142_create_spotlight_pages.rb