Permalink
Browse files

add indexes to items and extras table.

  • Loading branch information...
nysalor committed Apr 18, 2012
1 parent 96ee43e commit bac53fb2569b5a681a6bacad3e8c13535e4aa141
Showing with 11 additions and 0 deletions.
  1. +11 −0 db/migrate/20120418072318_add_indexes.rb
@@ -0,0 +1,11 @@
+class AddIndexes < ActiveRecord::Migration
+ def up
+ add_index :items, :user_id
+ add_index :extras, :item_id
+ end
+
+ def down
+ remove_index :extras, :item_id
+ remove_index :items, :user_id
+ end
+end

0 comments on commit bac53fb

Please sign in to comment.