class CreateComments < ActiveRecord::Migration[5.1]
  def change
    create_table :comments do |t|
      t.integer :post_id
      t.integer :user_id
      t.text :description

      t.timestamps
    end
    add_index :comments, :post_id
    add_index :comments, :user_id
  end
end
