aboutsummaryrefslogblamecommitdiffstats
path: root/guides/code/getting_started/db/migrate/20130122045842_create_comments.rb
blob: 1f765839ac688dabfed44d46290c2c1c48015c26 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                              
                                        


                  

     
class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.string :commenter
      t.text :body
      t.references :article, index: true

      t.timestamps
    end
  end
end