Sha256: 91d81286f254dcd5f3d9e95d8aa2b209cabe07d0c6c84ab3ed83a1d2d4e74069

Contents?: true

Size: 247 Bytes

Versions: 4

Compression:

Stored size: 247 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def self.up
    create_table :comments do |t|
      t.integer :post_id
      t.string :title
      t.text :body

      t.timestamps
    end
  end

  def self.down
    drop_table :comments
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fizx-collapsed_routes-1.0.2 spec/app/db/migrate/20090623181609_create_comments.rb
fizx-collapsed_routes-1.1.0 spec/app/db/migrate/20090623181609_create_comments.rb
fizx-collapsed_routes-1.2.0 spec/app/db/migrate/20090623181609_create_comments.rb
fizx-collapsed_routes-1.3.0 spec/app/db/migrate/20090623181609_create_comments.rb