Sha256: 0db618892a92fbdbdd72c10aa3647dfd171d20d5ff4058add9babd0daa3f2aee

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

class CreateSimpleForumCategories < ::ActiveRecord::Migration
  def self.up
    create_table :simple_forum_categories do |t|
      t.string :name
      t.text :body
      t.integer :position, :default => 0

      t.string :slug_cache

      t.timestamps
    end

    add_index :simple_forum_categories, :slug_cache
  end

  def self.down
    drop_table :simple_forum_categories
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_forum-0.0.4 db/migrate/20110330123459_create_simple_forum_categories.rb
simple_forum-0.0.2 db/migrate/20110330123459_create_simple_forum_categories.rb