Skip to content

Instantly share code, notes, and snippets.

@Mashpy Mashpy/country list
Created Nov 8, 2017

Embed
What would you like to do?
continent_lists = [
{ :id => 1, :continent_name => 'Europe', :order => 1 },
{ :id => 2, :continent_name => 'Asia', :order => 2 },
{ :id => 3, :continent_name => 'Africa', :order => 3 },
{ :id => 4, :continent_name => 'North America', :order => 4 },
{ :id => 5, :continent_name => 'South America', :order => 5 },
{ :id => 6, :continent_name => 'Australia and Oceania', :order => 6 },
]
Continent.create(continent_lists)
Country.create(:id => 1, :countryname => "N/A")
Country.create(:id => 2, :countryname => "Afghanistan")
Country.create(:id => 3, :countryname => "Albania")
Country.create(:id => 4, :countryname => "Algeria")
Country.create(:id => 5, :countryname => "Andorra")
Country.create(:id => 6, :countryname => "Angola")
Country.create(:id => 7, :countryname => "Antigua and Barbuda")
Country.create(:id => 8, :countryname => "Argentina")
Country.create(:id => 9, :countryname => "Armenia")
Country.create(:id => 10, :countryname => "Aruba")
Country.create(:id => 11, :countryname => "Australia")
Country.create(:id => 12, :countryname => "Austria")
Country.create(:id => 13, :countryname => "Azerbaijan")
Country.create(:id => 14, :countryname => "Bahamas")
Country.create(:id => 15, :countryname => "Bahrain")
Country.create(:id => 16, :countryname => "Bangladesh")
Country.create(:id => 17, :countryname => "Barbados")
Country.create(:id => 18, :countryname => "Belarus")
Country.create(:id => 19, :countryname => "Belgium")
Country.create(:id => 20, :countryname => "Belize")
Country.create(:id => 21, :countryname => "Benin")
Country.create(:id => 22, :countryname => "Bhutan")
Country.create(:id => 23, :countryname => "Bolivia")
Country.create(:id => 24, :countryname => "Bosnia and Herzegovina")
Country.create(:id => 25, :countryname => "Botswana")
Country.create(:id => 26, :countryname => "Brazil")
Country.create(:id => 27, :countryname => "Brunei")
Country.create(:id => 28, :countryname => "Bulgaria")
Country.create(:id => 29, :countryname => "Burkina Faso")
Country.create(:id => 30, :countryname => "Burma")
Country.create(:id => 31, :countryname => "Burundi")
Country.create(:id => 32, :countryname => "Cambodia")
Country.create(:id => 33, :countryname => "Cameroon")
Country.create(:id => 34, :countryname => "Canada")
Country.create(:id => 35, :countryname => "Cape Verde")
Country.create(:id => 36, :countryname => "Central African Republic")
Country.create(:id => 37, :countryname => "Chad")
Country.create(:id => 38, :countryname => "Chile")
Country.create(:id => 39, :countryname => "China")
Country.create(:id => 40, :countryname => "Colombia")
Country.create(:id => 41, :countryname => "Comoros")
Country.create(:id => 42, :countryname => "Congo, Democratic Republic of the")
Country.create(:id => 43, :countryname => "Congo, Republic of the")
Country.create(:id => 44, :countryname => "Costa Rica")
Country.create(:id => 45, :countryname => "Cote d'Ivoire")
Country.create(:id => 46, :countryname => "Croatia")
Country.create(:id => 47, :countryname => "Cuba")
Country.create(:id => 48, :countryname => "Curacao")
Country.create(:id => 49, :countryname => "Cyprus")
Country.create(:id => 50, :countryname => "Czech Republic")
Country.create(:id => 51, :countryname => "Denmark")
Country.create(:id => 52, :countryname => "Djibouti")
Country.create(:id => 53, :countryname => "Dominica")
Country.create(:id => 54, :countryname => "Dominican Republic")
Country.create(:id => 55, :countryname => "East Timor (see Timor-Leste)")
Country.create(:id => 56, :countryname => "Ecuador")
Country.create(:id => 57, :countryname => "Egypt")
Country.create(:id => 58, :countryname => "El Salvador")
Country.create(:id => 59, :countryname => "Equatorial Guinea")
Country.create(:id => 60, :countryname => "Eritrea")
Country.create(:id => 61, :countryname => "Estonia")
Country.create(:id => 62, :countryname => "Ethiopia")
Country.create(:id => 63, :countryname => "Fiji")
Country.create(:id => 64, :countryname => "Finland")
Country.create(:id => 65, :countryname => "France")
Country.create(:id => 66, :countryname => "Gabon")
Country.create(:id => 67, :countryname => "Gambia, The")
Country.create(:id => 68, :countryname => "Georgia")
Country.create(:id => 69, :countryname => "Germany")
Country.create(:id => 70, :countryname => "Ghana")
Country.create(:id => 71, :countryname => "Greece")
Country.create(:id => 72, :countryname => "Grenada")
Country.create(:id => 73, :countryname => "Guatemala")
Country.create(:id => 74, :countryname => "Guinea")
Country.create(:id => 75, :countryname => "Guinea-Bissau")
Country.create(:id => 76, :countryname => "Guyana")
Country.create(:id => 77, :countryname => "Haiti")
Country.create(:id => 78, :countryname => "Holy See")
Country.create(:id => 79, :countryname => "Honduras")
Country.create(:id => 80, :countryname => "Hong Kong")
Country.create(:id => 81, :countryname => "Hungary")
Country.create(:id => 82, :countryname => "Iceland")
Country.create(:id => 83, :countryname => "India")
Country.create(:id => 84, :countryname => "Indonesia")
Country.create(:id => 85, :countryname => "Iran")
Country.create(:id => 86, :countryname => "Iraq")
Country.create(:id => 87, :countryname => "Ireland")
Country.create(:id => 88, :countryname => "Israel")
Country.create(:id => 89, :countryname => "Italy")
Country.create(:id => 90, :countryname => "Jamaica")
Country.create(:id => 91, :countryname => "Japan")
Country.create(:id => 92, :countryname => "Jordan")
Country.create(:id => 93, :countryname => "Kazakhstan")
Country.create(:id => 94, :countryname => "Kenya")
Country.create(:id => 95, :countryname => "Kiribati")
Country.create(:id => 96, :countryname => "Korea, North")
Country.create(:id => 97, :countryname => "Korea, South")
Country.create(:id => 98, :countryname => "Kosovo")
Country.create(:id => 99, :countryname => "Kuwait")
Country.create(:id => 100, :countryname => "Kyrgyzstan")
Country.create(:id => 101, :countryname => "Laos")
Country.create(:id => 102, :countryname => "Latvia")
Country.create(:id => 103, :countryname => "Lebanon")
Country.create(:id => 104, :countryname => "Lesotho")
Country.create(:id => 105, :countryname => "Liberia")
Country.create(:id => 106, :countryname => "Libya")
Country.create(:id => 107, :countryname => "Liechtenstein")
Country.create(:id => 108, :countryname => "Lithuania")
Country.create(:id => 109, :countryname => "Luxembourg")
Country.create(:id => 110, :countryname => "Macau")
Country.create(:id => 111, :countryname => "Macedonia")
Country.create(:id => 112, :countryname => "Madagascar")
Country.create(:id => 113, :countryname => "Malawi")
Country.create(:id => 114, :countryname => "Malaysia")
Country.create(:id => 115, :countryname => "Maldives")
Country.create(:id => 116, :countryname => "Mali")
Country.create(:id => 117, :countryname => "Malta")
Country.create(:id => 118, :countryname => "Marshall Islands")
Country.create(:id => 119, :countryname => "Mauritania")
Country.create(:id => 120, :countryname => "Mauritius")
Country.create(:id => 121, :countryname => "Mexico")
Country.create(:id => 122, :countryname => "Micronesia")
Country.create(:id => 123, :countryname => "Moldova")
Country.create(:id => 124, :countryname => "Monaco")
Country.create(:id => 125, :countryname => "Mongolia")
Country.create(:id => 126, :countryname => "Montenegro")
Country.create(:id => 127, :countryname => "Morocco")
Country.create(:id => 128, :countryname => "Mozambique")
Country.create(:id => 129, :countryname => "Namibia")
Country.create(:id => 130, :countryname => "Nauru")
Country.create(:id => 131, :countryname => "Nepal")
Country.create(:id => 132, :countryname => "Netherlands")
Country.create(:id => 133, :countryname => "Netherlands Antilles")
Country.create(:id => 134, :countryname => "New Zealand")
Country.create(:id => 135, :countryname => "Nicaragua")
Country.create(:id => 136, :countryname => "Niger")
Country.create(:id => 137, :countryname => "Nigeria")
Country.create(:id => 138, :countryname => "North Korea")
Country.create(:id => 139, :countryname => "Norway")
Country.create(:id => 140, :countryname => "Oman")
Country.create(:id => 141, :countryname => "Pakistan")
Country.create(:id => 142, :countryname => "Palau")
Country.create(:id => 143, :countryname => "Palestinian Territories")
Country.create(:id => 144, :countryname => "Panama")
Country.create(:id => 145, :countryname => "Papua New Guinea")
Country.create(:id => 146, :countryname => "Paraguay")
Country.create(:id => 147, :countryname => "Peru")
Country.create(:id => 148, :countryname => "Philippines")
Country.create(:id => 149, :countryname => "Poland")
Country.create(:id => 150, :countryname => "Portugal")
Country.create(:id => 151, :countryname => "Qatar")
Country.create(:id => 152, :countryname => "Romania")
Country.create(:id => 153, :countryname => "Russia")
Country.create(:id => 154, :countryname => "Rwanda")
Country.create(:id => 155, :countryname => "Saint Kitts and Nevis")
Country.create(:id => 156, :countryname => "Saint Lucia")
Country.create(:id => 157, :countryname => "Saint Vincent and the Grenadines")
Country.create(:id => 158, :countryname => "Samoa")
Country.create(:id => 159, :countryname => "San Marino")
Country.create(:id => 160, :countryname => "Sao Tome and Principe")
Country.create(:id => 161, :countryname => "Saudi Arabia")
Country.create(:id => 162, :countryname => "Senegal")
Country.create(:id => 163, :countryname => "Serbia")
Country.create(:id => 164, :countryname => "Seychelles")
Country.create(:id => 165, :countryname => "Sierra Leone")
Country.create(:id => 166, :countryname => "Singapore")
Country.create(:id => 167, :countryname => "Sint Maarten")
Country.create(:id => 168, :countryname => "Slovakia")
Country.create(:id => 169, :countryname => "Slovenia")
Country.create(:id => 170, :countryname => "Solomon Islands")
Country.create(:id => 171, :countryname => "Somalia")
Country.create(:id => 172, :countryname => "South Africa")
Country.create(:id => 173, :countryname => "South Korea")
Country.create(:id => 174, :countryname => "South Sudan")
Country.create(:id => 175, :countryname => "Spain")
Country.create(:id => 176, :countryname => "Sri Lanka")
Country.create(:id => 177, :countryname => "Sudan")
Country.create(:id => 178, :countryname => "Suriname")
Country.create(:id => 179, :countryname => "Swaziland")
Country.create(:id => 180, :countryname => "Sweden")
Country.create(:id => 181, :countryname => "Switzerland")
Country.create(:id => 182, :countryname => "Syria")
Country.create(:id => 183, :countryname => "Taiwan")
Country.create(:id => 184, :countryname => "Tajikistan")
Country.create(:id => 185, :countryname => "Tanzania")
Country.create(:id => 186, :countryname => "Thailand")
Country.create(:id => 187, :countryname => "Timor-Leste")
Country.create(:id => 189, :countryname => "Togo")
Country.create(:id => 190, :countryname => "Tonga")
Country.create(:id => 191, :countryname => "Trinidad and Tobago")
Country.create(:id => 192, :countryname => "Tunisia")
Country.create(:id => 193, :countryname => "Turkey")
Country.create(:id => 194, :countryname => "Turkmenistan")
Country.create(:id => 195, :countryname => "Tuvalu")
Country.create(:id => 196, :countryname => "Uganda")
Country.create(:id => 197, :countryname => "Ukraine")
Country.create(:id => 198, :countryname => "United States of America")
Country.create(:id => 199, :countryname => "United Arab Emirates")
Country.create(:id => 200, :countryname => "United Kingdom")
Country.create(:id => 201, :countryname => "Uruguay")
Country.create(:id => 202, :countryname => "Uzbekistan")
Country.create(:id => 203, :countryname => "Vanuatu")
Country.create(:id => 204, :countryname => "Venezuela")
Country.create(:id => 205, :countryname => "Vietnam")
Country.create(:id => 206, :countryname => "Yemen")
Country.create(:id => 207, :countryname => "Zambia")
Country.create(:id => 208, :countryname => "Zimbabwe")
Country.create(:id => 209, :countryname => "Work From Home (Online Teaching)", :slug => 'online_teaching')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.