Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding index on ips.date

  • Loading branch information...
commit f752f8c0482659ffa138a4dcf36c3cb759380a4d 1 parent 5732efe
@winton authored
View
3  db/migrate/011_requests_indexes.rb
@@ -5,6 +5,7 @@ def self.up
end
def self.down
- drop_table :requests_indexes
+ remove_index :requests, :identifier
+ remove_index :requests, :ip
end
end
View
9 db/migrate/012_ips_indexes.rb
@@ -0,0 +1,9 @@
+class IpsIndexes < ActiveRecord::Migration
+ def self.up
+ add_index :ips, :date
+ end
+
+ def self.down
+ remove_index :ips, :date
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.