summaryrefslogtreecommitdiff
path: root/db/ci/migrate/20130710164015_add_db_index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/ci/migrate/20130710164015_add_db_index.rb')
-rw-r--r--db/ci/migrate/20130710164015_add_db_index.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/ci/migrate/20130710164015_add_db_index.rb b/db/ci/migrate/20130710164015_add_db_index.rb
new file mode 100644
index 00000000000..4907fae888b
--- /dev/null
+++ b/db/ci/migrate/20130710164015_add_db_index.rb
@@ -0,0 +1,7 @@
+class AddDbIndex < ActiveRecord::Migration
+ def change
+ add_index :builds, :runner_id
+ add_index :runner_projects, :runner_id
+ add_index :runner_projects, :project_id
+ end
+end