Sha256: 67b42ec3af88a172dffa646e9b9d0c766db0e989b1cd489e4a827c08efd12268

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

class CreateContents < ActiveRecord::Migration
  def self.up
    create_table :contents do |t|
      t.string    :title
      t.string    :permalink
      t.text      :description
      t.text      :body
      t.string    :type,       :default => 'Page'
      t.integer   :parent_id
      t.integer   :site_id
      t.integer   :user_id
      t.integer   :lft
      t.integer   :rgt
      t.datetime  :published_at
      t.timestamps
    end
  end

  def self.down
    drop_table :contents
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
content_engine-0.1.0 db/migrate/20100225105011_create_contents.rb
content_engine-0.1.0 spec/rails_app/db/migrate/20100225105011_create_contents.rb