Making more messes with mashes, maps, and requesters. Maybe a teensy
bit closer on the tournament pairing algorithm (???) ActiveRecord associations are kind of a pain, btw.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20120304164625) do
|
||||
ActiveRecord::Schema.define(:version => 20120309000749) do
|
||||
|
||||
create_table "maps", :force => true do |t|
|
||||
t.string "name", :null => false
|
||||
@@ -22,15 +22,21 @@ ActiveRecord::Schema.define(:version => 20120304164625) do
|
||||
add_index "maps", ["points"], :name => "index_maps_on_points"
|
||||
|
||||
create_table "mashes", :force => true do |t|
|
||||
t.string "requester", :null => false
|
||||
t.integer "map_a", :null => false
|
||||
t.integer "map_b", :null => false
|
||||
t.integer "winner", :null => false
|
||||
t.integer "requester_id", :null => false
|
||||
t.integer "map_a_id", :null => false
|
||||
t.integer "map_b_id", :null => false
|
||||
t.integer "winner_id", :null => false
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "mashes", ["requester"], :name => "index_mashes_on_requester"
|
||||
add_index "mashes", ["winner"], :name => "index_mashes_on_winner"
|
||||
add_index "mashes", ["requester_id"], :name => "index_mashes_on_requester_id"
|
||||
add_index "mashes", ["winner_id"], :name => "index_mashes_on_winner_id"
|
||||
|
||||
create_table "requesters", :force => true do |t|
|
||||
t.string "ip"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user