Skip to content

Instantly share code, notes, and snippets.

@dmgarland
Created June 11, 2014 22:53
Show Gist options
  • Save dmgarland/65c7282ded39cb1e0032 to your computer and use it in GitHub Desktop.
Save dmgarland/65c7282ded39cb1e0032 to your computer and use it in GitHub Desktop.
Country.create(iso: 'AF', name: 'Afghanistan', iso3: 'AFG')
Country.create(iso: 'AL', name: 'Albania', iso3: 'ALB')
Country.create(iso: 'DZ', name: 'Algeria', iso3: 'DZA')
Country.create(iso: 'AS', name: 'American Samoa', iso3: 'ASM')
Country.create(iso: 'AD', name: 'Andorra', iso3: 'AND')
Country.create(iso: 'AO', name: 'Angola', iso3: 'AGO')
Country.create(iso: 'AI', name: 'Anguilla', iso3: 'AIA')
Country.create(iso: 'AG', name: 'Antigua and Barbuda', iso3: 'ATG')
Country.create(iso: 'AR', name: 'Argentina', iso3: 'ARG')
Country.create(iso: 'AM', name: 'Armenia', iso3: 'ARM')
Country.create(iso: 'AW', name: 'Aruba', iso3: 'ABW')
Country.create(iso: 'AU', name: 'Australia', iso3: 'AUS', numcode: '036')
Country.create(iso: 'AT', name: 'Austria', iso3: 'AUT', numcode: '040')
Country.create(iso: 'AZ', name: 'Azerbaijan', iso3: 'AZE')
Country.create(iso: 'BS', name: 'Bahamas', iso3: 'BHS')
Country.create(iso: 'BH', name: 'Bahrain', iso3: 'BHR')
Country.create(iso: 'BD', name: 'Bangladesh', iso3: 'BGD')
Country.create(iso: 'BB', name: 'Barbados', iso3: 'BRB')
Country.create(iso: 'BY', name: 'Belarus', iso3: 'BLR')
Country.create(iso: 'BE', name: 'Belgium', iso3: 'BEL', numcode: '056')
Country.create(iso: 'BZ', name: 'Belize', iso3: 'BLZ')
Country.create(iso: 'BJ', name: 'Benin', iso3: 'BEN')
Country.create(iso: 'BM', name: 'Bermuda', iso3: 'BMU')
Country.create(iso: 'BT', name: 'Bhutan', iso3: 'BTN')
Country.create(iso: 'BO', name: 'Bolivia', iso3: 'BOL')
Country.create(iso: 'BA', name: 'Bosnia and Herzegovina', iso3: 'BIH')
Country.create(iso: 'BW', name: 'Botswana', iso3: 'BWA')
Country.create(iso: 'BR', name: 'Brazil', iso3: 'BRA', numcode: '076')
Country.create(iso: 'BN', name: 'Brunei Darussalam', iso3: 'BRN')
Country.create(iso: 'BG', name: 'Bulgaria', iso3: 'BGR')
Country.create(iso: 'BF', name: 'Burkina Faso', iso3: 'BFA')
Country.create(iso: 'BI', name: 'Burundi', iso3: 'BDI')
Country.create(iso: 'KH', name: 'Cambodia', iso3: 'KHM')
Country.create(iso: 'CM', name: 'Cameroon', iso3: 'CMR')
Country.create(iso: 'CA', name: 'Canada', iso3: 'CAN', numcode: '124')
Country.create(iso: 'CV', name: 'Cape Verde', iso3: 'CPV')
Country.create(iso: 'KY', name: 'Cayman Islands', iso3: 'CYM')
Country.create(iso: 'CF', name: 'Central African Republic', iso3: 'CAF')
Country.create(iso: 'TD', name: 'Chad', iso3: 'TCD')
Country.create(iso: 'CL', name: 'Chile', iso3: 'CHL')
Country.create(iso: 'CN', name: 'China', iso3: 'CHN')
Country.create(iso: 'CO', name: 'Colombia', iso3: 'COL')
Country.create(iso: 'KM', name: 'Comoros', iso3: 'COM')
Country.create(iso: 'CG', name: 'Congo', iso3: 'COG')
Country.create(iso: 'CD', name: 'Congo, the Democratic Republic of the', iso3: 'COD')
Country.create(iso: 'CK', name: 'Cook Islands', iso3: 'COK')
Country.create(iso: 'CR', name: 'Costa Rica', iso3: 'CRI')
Country.create(iso: 'CI', name: 'Cote D\'Ivoire', iso3: 'CIV')
Country.create(iso: 'HR', name: 'Croatia', iso3: 'HRV')
Country.create(iso: 'CU', name: 'Cuba', iso3: 'CUB')
Country.create(iso: 'CY', name: 'Cyprus', iso3: 'CYP', numcode: '196')
Country.create(iso: 'CZ', name: 'Czech Republic', iso3: 'CZE', numcode: '203')
Country.create(iso: 'DK', name: 'Denmark', iso3: 'DNK', numcode: '208')
Country.create(iso: 'DJ', name: 'Djibouti', iso3: 'DJI')
Country.create(iso: 'DM', name: 'Dominica', iso3: 'DMA')
Country.create(iso: 'DO', name: 'Dominican Republic', iso3: 'DOM')
Country.create(iso: 'EC', name: 'Ecuador', iso3: 'ECU')
Country.create(iso: 'EG', name: 'Egypt', iso3: 'EGY')
Country.create(iso: 'SV', name: 'El Salvador', iso3: 'SLV')
Country.create(iso: 'GQ', name: 'Equatorial Guinea', iso3: 'GNQ')
Country.create(iso: 'ER', name: 'Eritrea', iso3: 'ERI')
Country.create(iso: 'EE', name: 'Estonia', iso3: 'EST')
Country.create(iso: 'ET', name: 'Ethiopia', iso3: 'ETH')
Country.create(iso: 'FK', name: 'Falkland Islands (Malvinas)', iso3: 'FLK')
Country.create(iso: 'FO', name: 'Faroe Islands', iso3: 'FRO')
Country.create(iso: 'FJ', name: 'Fiji', iso3: 'FJI')
Country.create(iso: 'FI', name: 'Finland', iso3: 'FIN', numcode: '246')
Country.create(iso: 'FR', name: 'France', iso3: 'FRA', numcode: '250')
Country.create(iso: 'GF', name: 'French Guiana', iso3: 'GUF')
Country.create(iso: 'PF', name: 'French Polynesia', iso3: 'PYF')
Country.create(iso: 'GA', name: 'Gabon', iso3: 'GAB')
Country.create(iso: 'GM', name: 'Gambia', iso3: 'GMB')
Country.create(iso: 'GE', name: 'Georgia', iso3: 'GEO')
Country.create(iso: 'DE', name: 'Germany', iso3: 'DEU', numcode: '276')
Country.create(iso: 'GH', name: 'Ghana', iso3: 'GHA')
Country.create(iso: 'GI', name: 'Gibraltar', iso3: 'GIB', numcode: '292')
Country.create(iso: 'GR', name: 'Greece', iso3: 'GRC', numcode: '300')
Country.create(iso: 'GL', name: 'Greenland', iso3: 'GRL')
Country.create(iso: 'GD', name: 'Grenada', iso3: 'GRD')
Country.create(iso: 'GP', name: 'Guadeloupe', iso3: 'GLP')
Country.create(iso: 'GU', name: 'Guam', iso3: 'GUM')
Country.create(iso: 'GT', name: 'Guatemala', iso3: 'GTM')
Country.create(iso: 'GN', name: 'Guinea', iso3: 'GIN')
Country.create(iso: 'GW', name: 'Guinea-Bissau', iso3: 'GNB')
Country.create(iso: 'GY', name: 'Guyana', iso3: 'GUY')
Country.create(iso: 'HT', name: 'Haiti', iso3: 'HTI')
Country.create(iso: 'VA', name: 'Holy See (Vatican City State)', iso3: 'VAT')
Country.create(iso: 'HN', name: 'Honduras', iso3: 'HND')
Country.create(iso: 'HK', name: 'Hong Kong', iso3: 'HKG', numcode: '344')
Country.create(iso: 'HU', name: 'Hungary', iso3: 'HUN', numcode: '348')
Country.create(iso: 'IS', name: 'Iceland', iso3: 'ISL')
Country.create(iso: 'IN', name: 'India', iso3: 'IND')
Country.create(iso: 'ID', name: 'Indonesia', iso3: 'IDN')
Country.create(iso: 'IR', name: 'Iran, Islamic Republic of', iso3: 'IRN')
Country.create(iso: 'IQ', name: 'Iraq', iso3: 'IRQ')
Country.create(iso: 'IE', name: 'Ireland', iso3: 'IRL', numcode: '372')
Country.create(iso: 'IL', name: 'Israel', iso3: 'ISR', numcode: '376')
Country.create(iso: 'IT', name: 'Italy', iso3: 'ITA', numcode: '380')
Country.create(iso: 'JM', name: 'Jamaica', iso3: 'JAM')
Country.create(iso: 'JP', name: 'Japan', iso3: 'JPN', numcode: '392')
Country.create(iso: 'JO', name: 'Jordan', iso3: 'JOR')
Country.create(iso: 'KZ', name: 'Kazakhstan', iso3: 'KAZ')
Country.create(iso: 'KE', name: 'Kenya', iso3: 'KEN')
Country.create(iso: 'KI', name: 'Kiribati', iso3: 'KIR')
Country.create(iso: 'KP', name: 'Korea, Democratic People\'s Republic of', iso3: 'PRK')
Country.create(iso: 'KR', name: 'Korea, Republic of', iso3: 'KOR')
Country.create(iso: 'KW', name: 'Kuwait', iso3: 'KWT')
Country.create(iso: 'KG', name: 'Kyrgyzstan', iso3: 'KGZ')
Country.create(iso: 'LA', name: 'Lao People\'s Democratic Republic', iso3: 'LAO')
Country.create(iso: 'LV', name: 'Latvia', iso3: 'LVA')
Country.create(iso: 'LB', name: 'Lebanon', iso3: 'LBN')
Country.create(iso: 'LS', name: 'Lesotho', iso3: 'LSO')
Country.create(iso: 'LR', name: 'Liberia', iso3: 'LBR', numcode: '430')
Country.create(iso: 'LY', name: 'Libyan Arab Jamahiriya', iso3: 'LBY')
Country.create(iso: 'LI', name: 'Liechtenstein', iso3: 'LIE', numcode: '438')
Country.create(iso: 'LT', name: 'Lithuania', iso3: 'LTU')
Country.create(iso: 'LU', name: 'Luxembourg', iso3: 'LUX', numcode: '442')
Country.create(iso: 'MO', name: 'Macao', iso3: 'MAC')
Country.create(iso: 'MK', name: 'Macedonia, the Former Yugoslav Republic of', iso3: 'MKD')
Country.create(iso: 'MG', name: 'Madagascar', iso3: 'MDG')
Country.create(iso: 'MW', name: 'Malawi', iso3: 'MWI')
Country.create(iso: 'MY', name: 'Malaysia', iso3: 'MYS', numcode: '458')
Country.create(iso: 'MV', name: 'Maldives', iso3: 'MDV')
Country.create(iso: 'ML', name: 'Mali', iso3: 'MLI')
Country.create(iso: 'MT', name: 'Malta', iso3: 'MLT')
Country.create(iso: 'MH', name: 'Marshall Islands', iso3: 'MHL')
Country.create(iso: 'MQ', name: 'Martinique', iso3: 'MTQ')
Country.create(iso: 'MR', name: 'Mauritania', iso3: 'MRT')
Country.create(iso: 'MU', name: 'Mauritius', iso3: 'MUS')
Country.create(iso: 'MX', name: 'Mexico', iso3: 'MEX', numcode: '484')
Country.create(iso: 'FM', name: 'Micronesia, Federated States of', iso3: 'FSM')
Country.create(iso: 'MD', name: 'Moldova, Republic of', iso3: 'MDA')
Country.create(iso: 'MC', name: 'Monaco', iso3: 'MCO', numcode: '492')
Country.create(iso: 'MN', name: 'Mongolia', iso3: 'MNG')
Country.create(iso: 'MS', name: 'Montserrat', iso3: 'MSR')
Country.create(iso: 'MA', name: 'Morocco', iso3: 'MAR')
Country.create(iso: 'MZ', name: 'Mozambique', iso3: 'MOZ')
Country.create(iso: 'MM', name: 'Myanmar', iso3: 'MMR', numcode: '104')
Country.create(iso: 'NA', name: 'Namibia', iso3: 'NAM')
Country.create(iso: 'NR', name: 'Nauru', iso3: 'NRU')
Country.create(iso: 'NP', name: 'Nepal', iso3: 'NPL')
Country.create(iso: 'NL', name: 'Netherlands', iso3: 'NLD', numcode: '528')
Country.create(iso: 'AN', name: 'Netherlands Antilles', iso3: 'ANT')
Country.create(iso: 'NC', name: 'New Caledonia', iso3: 'NCL')
Country.create(iso: 'NZ', name: 'New Zealand', iso3: 'NZL', numcode: '554')
Country.create(iso: 'NI', name: 'Nicaragua', iso3: 'NIC')
Country.create(iso: 'NE', name: 'Niger', iso3: 'NER')
Country.create(iso: 'NG', name: 'Nigeria', iso3: 'NGA')
Country.create(iso: 'NU', name: 'Niue', iso3: 'NIU')
Country.create(iso: 'NF', name: 'Norfolk Island', iso3: 'NFK')
Country.create(iso: 'MP', name: 'Northern Mariana Islands', iso3: 'MNP')
Country.create(iso: 'NO', name: 'Norway', iso3: 'NOR', numcode: '578')
Country.create(iso: 'OM', name: 'Oman', iso3: 'OMN')
Country.create(iso: 'PK', name: 'Pakistan', iso3: 'PAK')
Country.create(iso: 'PW', name: 'Palau', iso3: 'PLW')
Country.create(iso: 'PA', name: 'Panama', iso3: 'PAN')
Country.create(iso: 'PG', name: 'Papua New Guinea', iso3: 'PNG')
Country.create(iso: 'PY', name: 'Paraguay', iso3: 'PRY')
Country.create(iso: 'PE', name: 'Peru', iso3: 'PER')
Country.create(iso: 'PH', name: 'Philippines', iso3: 'PHL', numcode: '608')
Country.create(iso: 'PN', name: 'Pitcairn', iso3: 'PCN')
Country.create(iso: 'PL', name: 'Poland', iso3: 'POL', numcode: '616')
Country.create(iso: 'PT', name: 'Portugal', iso3: 'PRT', numcode: '620')
Country.create(iso: 'PR', name: 'Puerto Rico', iso3: 'PRI')
Country.create(iso: 'QA', name: 'Qatar', iso3: 'QAT')
Country.create(iso: 'RE', name: 'Reunion', iso3: 'REU')
Country.create(iso: 'RO', name: 'Romania', iso3: 'ROM')
Country.create(iso: 'RU', name: 'Russian Federation', iso3: 'RUS')
Country.create(iso: 'RW', name: 'Rwanda', iso3: 'RWA')
Country.create(iso: 'SH', name: 'Saint Helena', iso3: 'SHN')
Country.create(iso: 'KN', name: 'Saint Kitts and Nevis', iso3: 'KNA')
Country.create(iso: 'LC', name: 'Saint Lucia', iso3: 'LCA')
Country.create(iso: 'PM', name: 'Saint Pierre and Miquelon', iso3: 'SPM')
Country.create(iso: 'VC', name: 'Saint Vincent and the Grenadines', iso3: 'VCT')
Country.create(iso: 'WS', name: 'Samoa', iso3: 'WSM')
Country.create(iso: 'SM', name: 'San Marino', iso3: 'SMR')
Country.create(iso: 'ST', name: 'Sao Tome and Principe', iso3: 'STP')
Country.create(iso: 'SA', name: 'Saudi Arabia', iso3: 'SAU')
Country.create(iso: 'SN', name: 'Senegal', iso3: 'SEN')
Country.create(iso: 'RS', name: 'Serbia', iso3: 'SRB')
Country.create(iso: 'ME', name: 'Montenegro', iso3: 'MNE', numcode: '499')
Country.create(iso: 'SC', name: 'Seychelles', iso3: 'SYC')
Country.create(iso: 'SL', name: 'Sierra Leone', iso3: 'SLE')
Country.create(iso: 'SG', name: 'Singapore', iso3: 'SGP', numcode: '702')
Country.create(iso: 'SK', name: 'Slovakia', iso3: 'SVK')
Country.create(iso: 'SI', name: 'Slovenia', iso3: 'SVN', numcode: '705')
Country.create(iso: 'SB', name: 'Solomon Islands', iso3: 'SLB')
Country.create(iso: 'SO', name: 'Somalia', iso3: 'SOM')
Country.create(iso: 'ZA', name: 'South Africa', iso3: 'ZAF')
Country.create(iso: 'ES', name: 'Spain', iso3: 'ESP', numcode: '724')
Country.create(iso: 'LK', name: 'Sri Lanka', iso3: 'LKA')
Country.create(iso: 'SD', name: 'Sudan', iso3: 'SDN')
Country.create(iso: 'SR', name: 'Suriname', iso3: 'SUR')
Country.create(iso: 'SZ', name: 'Swaziland', iso3: 'SWZ')
Country.create(iso: 'SE', name: 'Sweden', iso3: 'SWE', numcode: '752')
Country.create(iso: 'CH', name: 'Switzerland', iso3: 'CHE', numcode: '756')
Country.create(iso: 'SY', name: 'Syrian Arab Republic', iso3: 'SYR')
Country.create(iso: 'TW', name: 'Taiwan', iso3: 'TWN', numcode: '158')
Country.create(iso: 'TJ', name: 'Tajikistan', iso3: 'TJK')
Country.create(iso: 'TZ', name: 'Tanzania, United Republic of', iso3: 'TZA')
Country.create(iso: 'TH', name: 'Thailand', iso3: 'THA', numcode: '764')
Country.create(iso: 'TG', name: 'Togo', iso3: 'TGO')
Country.create(iso: 'TK', name: 'Tokelau', iso3: 'TKL')
Country.create(iso: 'TO', name: 'Tonga', iso3: 'TON')
Country.create(iso: 'TT', name: 'Trinidad and Tobago', iso3: 'TTO')
Country.create(iso: 'TN', name: 'Tunisia', iso3: 'TUN')
Country.create(iso: 'TR', name: 'Turkey', iso3: 'TUR')
Country.create(iso: 'TM', name: 'Turkmenistan', iso3: 'TKM')
Country.create(iso: 'TC', name: 'Turks and Caicos Islands', iso3: 'TCA')
Country.create(iso: 'TV', name: 'Tuvalu', iso3: 'TUV')
Country.create(iso: 'UG', name: 'Uganda', iso3: 'UGA')
Country.create(iso: 'UA', name: 'Ukraine', iso3: 'UKR')
Country.create(iso: 'AE', name: 'United Arab Emirates', iso3: 'ARE')
Country.create(iso: 'GB', name: 'United Kingdom', iso3: 'GBR', numcode: '826')
Country.create(iso: 'US', name: 'United States', iso3: 'USA', numcode: '840')
Country.create(iso: 'UY', name: 'Uruguay', iso3: 'URY')
Country.create(iso: 'UZ', name: 'Uzbekistan', iso3: 'UZB')
Country.create(iso: 'VU', name: 'Vanuatu', iso3: 'VUT')
Country.create(iso: 'VE', name: 'Venezuela', iso3: 'VEN')
Country.create(iso: 'VN', name: 'Viet Nam', iso3: 'VNM')
Country.create(iso: 'VG', name: 'Virgin Islands, British', iso3: 'VGB')
Country.create(iso: 'VI', name: 'Virgin Islands, U.s.', iso3: 'VIR')
Country.create(iso: 'WF', name: 'Wallis and Futuna', iso3: 'WLF')
Country.create(iso: 'EH', name: 'Western Sahara', iso3: 'ESH')
Country.create(iso: 'YE', name: 'Yemen', iso3: 'YEM')
Country.create(iso: 'ZM', name: 'Zambia', iso3: 'ZMB')
Country.create(iso: 'ZW', name: 'Zimbabwe', iso3: 'Z6')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment