Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 089eac7077
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.269 kb
class CreateComments < ActiveRecord::Migration
def change
create_table :comments do |t|
t.string :name, :null => false
t.text :body, :null => false
t.references :article
t.timestamps
end
add_index :comments, :article_id
end
end
Jump to Line
Something went wrong with that request. Please try again.