Starting to fill in tournament ranking bits
This commit is contained in:
@@ -5,9 +5,12 @@ class CreateMaps < ActiveRecord::Migration
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :maps, :name
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :maps
|
||||
remove_index :maps, :name
|
||||
end
|
||||
end
|
||||
|
@@ -8,9 +8,12 @@ class CreateMashes < ActiveRecord::Migration
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :mashes, :winner
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :mashes
|
||||
remove_index :mashes, :winner
|
||||
end
|
||||
end
|
||||
|
@@ -17,6 +17,8 @@ ActiveRecord::Schema.define(:version => 20120304164625) do
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "maps", ["name"], :name => "index_maps_on_name"
|
||||
|
||||
create_table "mashes", :force => true do |t|
|
||||
t.string "requester", :null => false
|
||||
t.integer "map_a", :null => false
|
||||
@@ -26,4 +28,6 @@ ActiveRecord::Schema.define(:version => 20120304164625) do
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "mashes", ["winner"], :name => "index_mashes_on_winner"
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user