Sha256: 8286b394a49f1d798e812385e7a6f8ef28c72dd2303804619596340e8d5f9fa8

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

class CreatePage < ActiveRecord::Migration
  def self.up
    create_table :pages do |t|
      t.integer :parent_id
      t.string  :name
      t.string  :slug
      t.string  :title
      t.string  :description
      t.integer :sort_order, default: 0, null: false
      t.string  :template, default: "default", null: false
      t.timestamps
    end
  end

  def self.down
    drop_table :pages
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thesis-0.0.4 lib/generators/thesis/install/templates/migrations/create_page.rb