Sha256: 777139061a38912db8bcb5fb54f50fccad0415b99b12c81a3cf6ce981584d1ab
Contents?: true
Size: 759 Bytes
Versions: 31
Compression:
Stored size: 759 Bytes
Contents
class CreateSmithyPages < ActiveRecord::Migration def change create_table :smithy_pages do |t| t.string :title, :null => false t.string :browser_title t.string :keywords t.string :description t.integer :cache_length t.datetime :published_at t.boolean :show_in_navigation t.string :permalink, :null => false t.string :path, :null => false t.belongs_to :template t.belongs_to :parent t.integer :lft t.integer :rgt t.integer :depth t.timestamps end add_index :smithy_pages, :template_id add_index :smithy_pages, :parent_id add_index :smithy_pages, :lft add_index :smithy_pages, :rgt add_index :smithy_pages, :path, :unique => true end end
Version data entries
31 entries across 31 versions & 1 rubygems