summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20100221100219_add_index_on_changesets_scmid.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20100221100219_add_index_on_changesets_scmid.rb b/db/migrate/20100221100219_add_index_on_changesets_scmid.rb
new file mode 100644
index 000000000..96d85a3a7
--- /dev/null
+++ b/db/migrate/20100221100219_add_index_on_changesets_scmid.rb
@@ -0,0 +1,9 @@
+class AddIndexOnChangesetsScmid < ActiveRecord::Migration
+ def self.up
+ add_index :changesets, [:repository_id, :scmid], :name => :changesets_repos_scmid
+ end
+
+ def self.down
+ remove_index :changesets, :name => :changesets_repos_scmid
+ end
+end