Sha256: 493148aee886a865bc54e5d3276666a63cdef6f43c6481ea8f4707b306ea91bd

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

class CreateKublogComments < ActiveRecord::Migration
  def change
    create_table :kublog_comments do |t|
      t.text       :body
      t.references :user
      t.references :post
      t.string     :author_name
      t.string     :author_email
      t.timestamps
    end
    add_index :kublog_comments, :post_id
    add_index :kublog_comments, :user_id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kublog-0.9.0 db/migrate/20110822194341_create_kublog_comments.rb
kublog-0.0.1.1 db/migrate/20110822194341_create_kublog_comments.rb