summaryrefslogtreecommitdiff
path: root/db/migrate/20121219095402_indices_for_notes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20121219095402_indices_for_notes.rb')
-rw-r--r--db/migrate/20121219095402_indices_for_notes.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20121219095402_indices_for_notes.rb b/db/migrate/20121219095402_indices_for_notes.rb
new file mode 100644
index 00000000000..4c5d041ce81
--- /dev/null
+++ b/db/migrate/20121219095402_indices_for_notes.rb
@@ -0,0 +1,6 @@
+class IndicesForNotes < ActiveRecord::Migration
+ def change
+ add_index :notes, :commit_id
+ add_index :notes, [:project_id, :noteable_type]
+ end
+end