Sha256: 0ef48706a2ace04d47602f9f70b93e0ea4bfb290299c3d4d9b532c4ba5957b87
Contents?: true
Size: 684 Bytes
Versions: 110
Compression:
Stored size: 684 Bytes
Contents
class CreateSpotlightPages < ActiveRecord::Migration[4.2] 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
110 entries across 110 versions & 1 rubygems