1 class CreateComments < ActiveRecord::Migration
3 create_table :comments do |t|
4 t.integer :user_id, :null => false
5 t.integer :repository_id, :null => false
6 t.string :sha1, :null => true
10 add_index :comments, :user_id
11 add_index :comments, :repository_id
12 add_index :comments, :sha1