Sha256: 53550c287876444c2ed4c290e2155296b2d1ff76e1b27bce8c528ce7a697fa2e

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

class CreateRailsBlogEngineComments < ActiveRecord::Migration
  def change
    create_table :rails_blog_engine_comments do |t|
      t.references :post
      t.string :author_byline
      t.string :author_email
      t.string :author_url
      t.string :author_ip
      t.string :author_user_agent
      t.boolean :author_can_post
      t.string :referrer
      t.string :state
      t.text :body

      t.timestamps
    end

    add_index :rails_blog_engine_comments, :post_id
    add_index :rails_blog_engine_comments, :author_email
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_blog_engine-0.0.4 db/migrate/20111125111958_create_rails_blog_engine_comments.rb
rails_blog_engine-0.0.3 db/migrate/20111125111958_create_rails_blog_engine_comments.rb
rails_blog_engine-0.0.2 db/migrate/20111125111958_create_rails_blog_engine_comments.rb
rails_blog_engine-0.0.1 db/migrate/20111125111958_create_rails_blog_engine_comments.rb