class CreateAnswers < ActiveRecord::Migration
  def change
    create_table :answers do |t|
      t.references :question
      t.references :user
      t.text :body

      t.timestamps
    end
    add_index :answers, :question_id
    add_index :answers, :user_id
  end
end
