From 7736f69715bff7f4309ff46942dc467d6c3bfb91 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 27 Mar 2013 23:02:46 +0600 Subject: [PATCH] [#19] add index --- db/migrate/20130326165628_add_add_info_to_comments.rb | 1 + db/schema.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/db/migrate/20130326165628_add_add_info_to_comments.rb b/db/migrate/20130326165628_add_add_info_to_comments.rb index a7821f461..5a88f8414 100644 --- a/db/migrate/20130326165628_add_add_info_to_comments.rb +++ b/db/migrate/20130326165628_add_add_info_to_comments.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index b26fff00f..4c12bf0c9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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|