Add a user index to the changeset table.
authorTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 13:31:57 +0000 (13:31 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 13:31:57 +0000 (13:31 +0000)
db/migrate/026_add_changeset_user_index.rb [new file with mode: 0644]

diff --git a/db/migrate/026_add_changeset_user_index.rb b/db/migrate/026_add_changeset_user_index.rb
new file mode 100644 (file)
index 0000000..fed0af7
--- /dev/null
@@ -0,0 +1,9 @@
+class AddChangesetUserIndex < ActiveRecord::Migration
+  def self.up
+    add_index "changesets", ["user_id"], :name => "changesets_user_id_idx"
+  end
+
+  def self.down
+    remove_index "changesets", :name => "changesets_user_id_idx"
+  end
+end