Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

index up all fields

Signed-off-by: evizitei <ethan.vizitei@gmail.com>
  • Loading branch information...
commit f9c52b384b8fbe3c8b98733210f71d43cf099b0a 1 parent 2b82a1e
@evizitei authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 db/migrate/20101022194138_index_away.rb
View
25 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
Please sign in to comment.
Something went wrong with that request. Please try again.