Permalink
Browse files

Adding indexes for requests table

  • Loading branch information...
1 parent c7d32fe commit 295fa4e8a7949e16d15f97886044ee5e4c53a58a @winton committed Oct 27, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 db/migrate/011_requests_indexes.rb
@@ -0,0 +1,10 @@
+class RequestsIndexes < ActiveRecord::Migration
+ def self.up
+ add_index :requests, :identifier
+ add_index :requests, :ip
+ end
+
+ def self.down
+ drop_table :requests_indexes
+ end
+end

0 comments on commit 295fa4e

Please sign in to comment.