Sha256: 64f0606523359d0918eafaf3de3bd38fcf2b1183dccefbe3eef1bc2f6764e340

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

# This migration comes from puffer_pages (originally 20090504132337)
class CreatePageParts < ActiveRecord::Migration
  def self.up
    create_table :page_parts do |t|
      t.string :name
      t.text :body
      t.integer :page_id

      t.timestamps
    end

    add_index :page_parts, :name
    add_index :page_parts, :page_id
  end

  def self.down
    drop_table :page_parts
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puffer_pages-0.5.1 spec/dummy/db/migrate/20130118071512_create_page_parts.rb
puffer_pages-0.5.0 spec/dummy/db/migrate/20130118071512_create_page_parts.rb