Sha256: 7456bc38df2544ab9fcf40bf98f014835df7c1a9e23f22c888ff14e547cbdf21

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

class CreateDiscussionComments < ActiveRecord::Migration
  def change
    create_table :discussion_comments do |t|
      t.integer :author_id
      t.integer :commentable_id
      t.string  :commentable_type, limit: 32
      t.text :body

      t.timestamps
    end
    add_index :discussion_comments, :author_id
    add_index :discussion_comments, :commentable_id
    add_index :discussion_comments, :commentable_type
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
discussion-0.0.1 db/migrate/20130501080150_create_discussion_comments.rb