summaryrefslogtreecommitdiffstats
path: root/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20091017213536_add_missing_indexes_to_changesets.rb')
-rw-r--r--db/migrate/20091017213536_add_missing_indexes_to_changesets.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb b/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb
new file mode 100644
index 000000000..303be838d
--- /dev/null
+++ b/db/migrate/20091017213536_add_missing_indexes_to_changesets.rb
@@ -0,0 +1,11 @@
+class AddMissingIndexesToChangesets < ActiveRecord::Migration
+ def self.up
+ add_index :changesets, :user_id
+ add_index :changesets, :repository_id
+ end
+
+ def self.down
+ remove_index :changesets, :user_id
+ remove_index :changesets, :repository_id
+ end
+end