Sha256: 1fb3b16d36e66f13b728cb581e6786cd0a0422f444ce1688bf682ff0510cddac

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

class CreatePostCategories << ActiveRecord::Migration
  def up
    create_table "post_categories" do |t|
      t.string   "title"
      t.integer  "list_order", :default => 999
      t.datetime "created_at"
      t.datetime "updated_at"
    end

    create_table "post_categories_posts", :id => false do |t|
      t.integer "post_category_id"
      t.integer "post_id"
    end
  end

  def down
    drop_table :post_categories
    drop_table :post_categories_posts
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forge-cli-0.0.10 lib/forge/db/migrate/20130405172025_create_post_categories.rb
forge-cli-0.0.9 lib/forge/db/migrate/20130405172025_create_post_categories.rb