projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
476e3f2
)
Add a user index to the changeset table.
author
Tom Hughes
<tom@compton.nu>
Mon, 20 Apr 2009 13:31:57 +0000
(13:31 +0000)
committer
Tom 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]
patch
|
blob
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
+++ b/
db/migrate/026_add_changeset_user_index.rb
@@ -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