Class: AddMoreIndexes

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/six-updater-web/db/migrate/20100520101650_add_more_indexes.rb

Class Method Summary collapse

Class Method Details

.downObject



10
11
# File 'lib/six-updater-web/db/migrate/20100520101650_add_more_indexes.rb', line 10

def self.down
end

.upObject



2
3
4
5
6
7
8
# File 'lib/six-updater-web/db/migrate/20100520101650_add_more_indexes.rb', line 2

def self.up
  #add_index :mods_queryservers, :mod_id # Already exists
  #add_index :mods_queryservers, :queryserver_id # Already exists
  add_index :queryservers, :name
  add_index :queryservers, [:ip, :port]
  #add_index :mods, :name # Already exists
end