master
1class CreateComments < ActiveRecord::Migration
2 def change
3 create_table :comments do |t|
4 t.integer :user_id
5 t.integer :creation_id
6 t.string :text
7 t.integer :disqus_id
8 t.timestamps
9 end
10
11 add_index :comments, :user_id
12 add_index :comments, :creation_id
13 end
14end