re-namespacing a touch
This commit is contained in:
191
map-mash/db/capital-cities.csv
Normal file
191
map-mash/db/capital-cities.csv
Normal file
@@ -0,0 +1,191 @@
|
||||
region,city
|
||||
Afghanistan,Kabul
|
||||
Albania,Tirane
|
||||
Algeria,Algiers
|
||||
Andorra,Andorra la Vella
|
||||
Angola,Luanda
|
||||
Antigua and Barbuda,St. John's
|
||||
Argentina,Buenos Aires
|
||||
Australia,Canberra
|
||||
Austria,Vienna
|
||||
Azerbaijan,Baku
|
||||
Bahamas,Nassau
|
||||
Bahrain,Manama
|
||||
Bangladesh,Dhaka
|
||||
Barbados,Bridgetown
|
||||
Belarus,Minsk
|
||||
Belgium,Brussels
|
||||
Belize,Belmopan
|
||||
Benin,Porto-Novo
|
||||
Bhutan,Thimphu
|
||||
Bolivia,Sucre
|
||||
Bosnia and Herzegovina,Sarajevo
|
||||
Botswana,Gaborone
|
||||
Brazil,Brasilia
|
||||
Brunei,Darussalam Bandar Seri Begawan
|
||||
Bulgaria,Sofia
|
||||
Burkina Faso,Ouagadougou
|
||||
Burundi,Bujumbura
|
||||
Cambodia,Phnom Penh
|
||||
Cameroon,Yaounde
|
||||
Canada,Ottawa
|
||||
Cape Verde,Praia
|
||||
Central African Republic,Bangui
|
||||
Chad,N'Djamena
|
||||
Chile,Santiago
|
||||
China,Beijing
|
||||
Colombia,Bogota
|
||||
Comoros,Moroni
|
||||
Congo,Brazzaville
|
||||
Congo,Kinshasa
|
||||
Costa Rica,San Jose
|
||||
Cote d'Ivoire,Yamoussoukro
|
||||
Croatia,Zagreb
|
||||
Cuba,Havana
|
||||
Cyprus,Nicosia
|
||||
Czech Republic,Prague
|
||||
Denmark,Copenhagen
|
||||
Djibouti,Djibouti
|
||||
Dominica,Roseau
|
||||
Dominican Republic,Santo Domingo
|
||||
Ecuador,Quito
|
||||
Egypt,Cairo
|
||||
El Salvador,San Salvador
|
||||
Equatorial Guinea,Malabo
|
||||
Eritrea,Asmara
|
||||
Estonia,Tallinn
|
||||
Ethiopia,Addis Ababa
|
||||
Fiji,Suva
|
||||
Finland,Helsinki
|
||||
France,Paris
|
||||
Gabon,Libreville
|
||||
Gambia,Banjul
|
||||
Georgia,Tbilisi
|
||||
Germany,Berlin
|
||||
Ghana,Accra
|
||||
Greece,Athens
|
||||
Grenada,St. George's
|
||||
Guatemala,Guatemala City
|
||||
Guinea,Conakry
|
||||
Guinea-Bissau,Bissau
|
||||
Guyana,Georgetown
|
||||
Haiti,Port-au-Prince
|
||||
Honduras,Tegucigalpa
|
||||
Hungary,Budapest
|
||||
Iceland,Reykjavik
|
||||
India,New Delhi
|
||||
Indonesia,Jakarta
|
||||
Iran,Teheran
|
||||
Iraq,Baghdad
|
||||
Ireland,Dublin
|
||||
Israel,Jerusalem
|
||||
Italy,Rome
|
||||
Jamaica,Kingston
|
||||
Japan,Tokyo
|
||||
Jordan,Amman
|
||||
Kazakhstan,Astana
|
||||
Kenya,Nairobi
|
||||
Kiribati,South Tarawa
|
||||
Korea,Pyongyang
|
||||
Korea,Seoul
|
||||
Kuwait,Kuwait City
|
||||
Kyrgyzstan,Bishkek
|
||||
Laos,Vientiane
|
||||
Latvia,Riga
|
||||
Lebanon,Beirut
|
||||
Lesotho,Maseru
|
||||
Liberia,Monrovia
|
||||
Libya,Tripoli
|
||||
Liechtenstein,Vaduz
|
||||
Lithuania,Vilnius
|
||||
Luxembourg,Luxembourg
|
||||
Macedonia,Skopje
|
||||
Madagascar,Antananarivo
|
||||
Malawi,Lilongwe
|
||||
Malaysia,Kuala Lumpur
|
||||
Maldives,Male
|
||||
Mali,Bamako
|
||||
Malta,Valletta
|
||||
Marshall Islands,Majuro
|
||||
Mauritania,Nouakchott
|
||||
Mauritius,Port Louis
|
||||
Mexico,Mexico City
|
||||
Micronesia,Palikir
|
||||
Moldova,Chisinau
|
||||
Monaco,Monaco
|
||||
Mongolia,Ulan Bator
|
||||
Morocco,Rabat
|
||||
Mozambique,Maputo
|
||||
Myanmar,Rangoon
|
||||
Namibia,Windhoek
|
||||
Nauru,Yaren
|
||||
Nepal,Kathmandu
|
||||
Netherlands,Amsterdam
|
||||
New Zealand,Wellington
|
||||
Nicaragua,Managua
|
||||
Niger,Niamey
|
||||
Nigeria,Abuja
|
||||
Norway,Oslo
|
||||
Oman,Muscat
|
||||
Pakistan,Islamabad
|
||||
Palau,Koror
|
||||
Panama,Panama City
|
||||
Papua New Guinea,Port Moresby
|
||||
Paraguay,Asuncion
|
||||
Peru,Lima
|
||||
Philippines,Manila
|
||||
Poland,Warsaw
|
||||
Portugal,Lisbon
|
||||
Qatar,Doha
|
||||
Romania,Bucharest
|
||||
Russian Federation,Moscow
|
||||
Rwanda,Kigali
|
||||
St. Kitts and Nevis,Basseterre
|
||||
St. Lucia,Castries
|
||||
St. Vincent and The Grenadines,Kingstown
|
||||
Samoa,Apia
|
||||
San Marino,San Marino
|
||||
Sao Tome and Principe,Sao Tome
|
||||
Saudi Arabia,Riyadh
|
||||
Senegal,Dakar
|
||||
Seychelles,Victoria
|
||||
Sierra Leone,Freetown
|
||||
Singapore,Singapore
|
||||
Slovakia,Bratislava
|
||||
Slovenia,Ljubljana
|
||||
Solomon Islands,Honiara
|
||||
Somalia,Mogadishu
|
||||
South Africa,Pretoria
|
||||
Spain,Madrid
|
||||
Sri Lanka,Colombo
|
||||
Sudan,Khartoum
|
||||
Suriname,Paramaribo
|
||||
Swaziland,Mbabane
|
||||
Sweden,Stockholm
|
||||
Switzerland,Bern
|
||||
Syria,Damascus
|
||||
Taiwan,Taipei
|
||||
Tajikistan,Dushanbe
|
||||
Tanzania,Dar es Salaam
|
||||
Thailand,Bangkok
|
||||
Togo,Lome
|
||||
Tonga,Nuku'alofa
|
||||
Trinidad and Tobago,Port-of-Spain
|
||||
Tunisia,Tunis
|
||||
Turkey,Ankara
|
||||
Turkmenistan,Ashgabat
|
||||
Tuvalu,Funafuti
|
||||
Uganda,Kampala
|
||||
Ukraine,Kiev
|
||||
United Arab Emirates,Abu Dhabi
|
||||
United Kingdom,London
|
||||
United States,Washington
|
||||
Uruguay,Montevideo
|
||||
Uzbekistan,Tashkent
|
||||
Vanuatu,Port Vila
|
||||
Venezuela,Caracas
|
||||
Vietnam,Hanoi
|
||||
Western Sahara,El Aaiun
|
||||
Yemen,Sana
|
||||
Zambia,Lusaka
|
||||
Zimbabwe,Harare
|
|
16
map-mash/db/migrate/20120304151123_create_maps.rb
Normal file
16
map-mash/db/migrate/20120304151123_create_maps.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreateMaps < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :maps do |t|
|
||||
t.string :name, :null => false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :maps, [:name]
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :maps, [:name]
|
||||
drop_table :maps
|
||||
end
|
||||
end
|
22
map-mash/db/migrate/20120304164625_create_mashes.rb
Normal file
22
map-mash/db/migrate/20120304164625_create_mashes.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
class CreateMashes < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :mashes 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
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :mashes, [:winner_id]
|
||||
add_index :mashes, [:mash_tournament_id]
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :mashes, [:winner_id]
|
||||
remove_index :mashes, [:mash_tournament_id]
|
||||
drop_table :mashes
|
||||
end
|
||||
end
|
13
map-mash/db/migrate/20120309000749_create_requesters.rb
Normal file
13
map-mash/db/migrate/20120309000749_create_requesters.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateRequesters < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :requesters do |t|
|
||||
t.string :ip
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :requesters
|
||||
end
|
||||
end
|
@@ -0,0 +1,19 @@
|
||||
class CreateMashTournaments < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :mash_tournaments do |t|
|
||||
t.references :requester, :null => false
|
||||
t.integer :total_rounds, :default => 1
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :mash_tournaments, [:requester_id]
|
||||
add_index :mash_tournaments, [:total_rounds]
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :mash_tournaments, [:total_rounds]
|
||||
remove_index :mash_tournaments, [:requester_id]
|
||||
drop_table :mash_tournaments
|
||||
end
|
||||
end
|
@@ -0,0 +1,20 @@
|
||||
class CreateMashTournamentRounds < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :mash_tournament_rounds do |t|
|
||||
t.references :mash_tournament
|
||||
t.integer :number, :null => false
|
||||
t.integer :mash_count, :null => false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :mash_tournament_rounds, [:mash_tournament_id, :number]
|
||||
add_index :mash_tournament_rounds, [:mash_count]
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :mash_tournament_rounds, [:mash_tournament_id, :number]
|
||||
remove_index :mash_tournament_rounds, [:mash_count]
|
||||
drop_table :mash_tournament_rounds
|
||||
end
|
||||
end
|
62
map-mash/db/schema.rb
Normal file
62
map-mash/db/schema.rb
Normal file
@@ -0,0 +1,62 @@
|
||||
# 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
|
||||
|
||||
create_table "maps", :force => true do |t|
|
||||
t.string "name", :null => false
|
||||
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"
|
||||
|
||||
create_table "mash_tournaments", :force => true do |t|
|
||||
t.integer "requester_id", :null => false
|
||||
t.integer "total_rounds", :default => 1
|
||||
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"
|
||||
|
||||
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"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
end
|
10
map-mash/db/top-us-cities.csv
Normal file
10
map-mash/db/top-us-cities.csv
Normal file
@@ -0,0 +1,10 @@
|
||||
city,region
|
||||
Omaha,Nebraska
|
||||
Charlotte,North Carolina
|
||||
Nashville,Tenessee
|
||||
Colorado Springs,Colorado
|
||||
Knoxville,Tenessee
|
||||
Lexington,Kentucky
|
||||
Little Rock,Arkansas
|
||||
Wichita,Kansas
|
||||
Cedar Rapids,Iowa
|
|
Reference in New Issue
Block a user