8ad33d18b7
bit closer on the tournament pairing algorithm (???) ActiveRecord associations are kind of a pain, btw.
43 lines
1.7 KiB
Ruby
43 lines
1.7 KiB
Ruby
# This file is auto-generated from the current state of the database. Instead of editing this file,
|
|
# please use the migrations feature of Active Record to incrementally modify your database, and
|
|
# then regenerate this schema definition.
|
|
#
|
|
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
|
|
# to create the application database on another system, you should be using db:schema:load, not running
|
|
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
#
|
|
# It's strongly recommended to check this file into your version control system.
|
|
|
|
ActiveRecord::Schema.define(:version => 20120309000749) do
|
|
|
|
create_table "maps", :force => true do |t|
|
|
t.string "name", :null => false
|
|
t.integer "points", :default => 0
|
|
t.datetime "created_at"
|
|
t.datetime "updated_at"
|
|
end
|
|
|
|
add_index "maps", ["name"], :name => "index_maps_on_name"
|
|
add_index "maps", ["points"], :name => "index_maps_on_points"
|
|
|
|
create_table "mashes", :force => true do |t|
|
|
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_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
|