[#19] add index

This commit is contained in:
Alexander Machehin 2013-03-27 23:02:46 +06:00
parent 48f5ba42b0
commit 7736f69715
2 changed files with 2 additions and 0 deletions

View File

@ -4,5 +4,6 @@ class AddAddInfoToComments < ActiveRecord::Migration
add_column :comments, :created_from_issue_id, :integer
add_index :comments, :created_from_issue_id
add_index :comments, :created_from_commit_hash
end
end

View File

@ -164,6 +164,7 @@ ActiveRecord::Schema.define(:version => 20130326165628) do
add_index "comments", ["automatic"], :name => "index_comments_on_automatic"
add_index "comments", ["commentable_id"], :name => "index_comments_on_commentable_id"
add_index "comments", ["commentable_type"], :name => "index_comments_on_commentable_type"
add_index "comments", ["created_from_commit_hash"], :name => "index_comments_on_created_from_commit_hash"
add_index "comments", ["created_from_issue_id"], :name => "index_comments_on_created_from_issue_id"
create_table "event_logs", :force => true do |t|