Sha256: b2efe298d6264d854a87af72cae4cf39e7fee6d75f8c7d996a7a6f36596e4c44

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

# This migration comes from discussion (originally 20130501080150)
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 test/dummy/db/migrate/20130501154802_create_discussion_comments.discussion.rb