Class: CreateRevelryContentPages

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/revelry/content/templates/create_revelry_content_pages.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/revelry/content/templates/create_revelry_content_pages.rb', line 2

def change
  create_table :revelry_content_pages do |t|
    t.string :slug
    t.string :menu_name
    t.string :name
    t.string :template
    t.string :ancestry
    t.integer :depth_cache
    t.boolean :show_in_menu
    t.boolean :draft
    t.timestamps null: false
  end

  add_index :revelry_content_pages, :template
end