box-o-sand/rails/map-mash/db/schema.rb

63 lines
2.5 KiB
Ruby
Raw Normal View History

2012-03-04 13:05:48 +00:00
# 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 => 20120310035133) do
2012-03-04 16:51:35 +00:00
create_table "maps", :force => true do |t|
t.string "name", :null => false
2012-03-04 16:51:35 +00:00
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "maps", ["name"], :name => "index_maps_on_name"
create_table "mash_tournament_rounds", :force => true do |t|
t.integer "mash_tournament_id"
t.integer "number", :null => false
t.integer "mash_count", :null => false
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "mash_tournament_rounds", ["mash_count"], :name => "index_mash_tournament_rounds_on_mash_count"
add_index "mash_tournament_rounds", ["mash_tournament_id", "number"], :name => "index_mash_tournament_rounds_on_mash_tournament_id_and_number"
2012-03-09 13:07:08 +00:00
create_table "mash_tournaments", :force => true do |t|
t.integer "requester_id", :null => false
t.integer "total_rounds", :default => 1
2012-03-09 13:07:08 +00:00
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "mash_tournaments", ["requester_id"], :name => "index_mash_tournaments_on_requester_id"
add_index "mash_tournaments", ["total_rounds"], :name => "index_mash_tournaments_on_total_rounds"
2012-03-04 16:51:35 +00:00
create_table "mashes", :force => true do |t|
t.integer "mash_tournament_id", :null => false
t.integer "map_a_id"
t.integer "map_b_id"
t.integer "winner_id"
t.integer "mash_tournament_round_id"
2012-03-04 16:51:35 +00:00
t.datetime "created_at"
t.datetime "updated_at"
end
2012-03-04 13:05:48 +00:00
add_index "mashes", ["mash_tournament_id"], :name => "index_mashes_on_mash_tournament_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
2012-03-04 13:05:48 +00:00
end