ActiveRecord::Migration
# File guides/code/getting_started/db/migrate/20130122045842_create_comments.rb, line 2 def change create_table :comments do |t| t.string :commenter t.text :body t.references :post, index: true t.timestamps end end