Permalink
Browse files

index up all fields

Signed-off-by: evizitei <ethan.vizitei@gmail.com>
  • Loading branch information...
evizitei committed Oct 22, 2010
1 parent 2b82a1e commit f9c52b384b8fbe3c8b98733210f71d43cf099b0a
Showing with 25 additions and 0 deletions.
  1. +25 −0 db/migrate/20101022194138_index_away.rb
@@ -0,0 +1,25 @@
+class IndexAway < ActiveRecord::Migration
+ def self.up
+ add_index :receiver_staffing_records,"receiver_id"
+ add_index :receiver_staffing_records,"is_closed"
+ add_index :receiver_staffing_records,"tag_id"
+ add_index :receivers,"station_id"
+ add_index :stations,:district_id
+ add_index :staffing_records,"tag_id"
+ add_index :staffing_records,"station_id"
+ add_index :staffing_records,"is_closed"
+ add_index :tags,"sig"
+ end
+
+ def self.down
+ remove_index :receiver_staffing_records,"receiver_id"
+ remove_index :receiver_staffing_records,"is_closed"
+ remove_index :receiver_staffing_records,"tag_id"
+ remove_index :receivers,"station_id"
+ remove_index :stations,:district_id
+ remove_index :staffing_records,"tag_id"
+ remove_index :staffing_records,"station_id"
+ remove_index :staffing_records,"is_closed"
+ remove_index :tags,"sig"
+ end
+end

0 comments on commit f9c52b3

Please sign in to comment.