2011-09-12 10:30:45 -04:00
|
|
|
class CreateComments < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :comments do |t|
|
|
|
|
t.string :commenter
|
|
|
|
t.text :body
|
2013-01-22 00:12:29 -05:00
|
|
|
t.references :post, index: true
|
2011-09-12 10:30:45 -04:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|