terrarum 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +37 -0
- data/install.rb +1 -0
- data/lib/generators/all.rb +20 -0
- data/lib/generators/countries/countries_generator.rb +45 -0
- data/lib/generators/countries/templates/migration.rb +1743 -0
- data/lib/generators/countries/templates/model.rb +8 -0
- data/lib/generators/languages/languages_generator.rb +45 -0
- data/lib/generators/languages/templates/migration.rb +953 -0
- data/lib/generators/languages/templates/model.rb +9 -0
- data/lib/terrarum/version.rb +5 -0
- data/lib/terrarum.rb +11 -0
- data/rails/init.rb +1 -0
- metadata +92 -0
@@ -0,0 +1,1743 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
class <%= migration_class_name %> < ActiveRecord::Migration
|
3
|
+
def self.up
|
4
|
+
create_table :<%= table_name %> do |t|
|
5
|
+
t.column :code, :string, :null => false, :limit => 10
|
6
|
+
t.column :name, :string, :null => false, :limit => 100
|
7
|
+
t.column :iso3, :string, :null => false, :limit => 3
|
8
|
+
t.column :numeric, :integer, :null => false
|
9
|
+
t.column :eu, :boolean, :null => false, :default => false
|
10
|
+
<% if options[:timestamps] %>
|
11
|
+
t.timestamps
|
12
|
+
<% end %>
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index :<%= table_name %>, :code, :unique => true
|
16
|
+
|
17
|
+
<%= class_name %>.create!(
|
18
|
+
:code => "AF",
|
19
|
+
:name => "Afghanistan",
|
20
|
+
:iso3 => "AFG",
|
21
|
+
:numeric => 4,
|
22
|
+
:eu => false)
|
23
|
+
|
24
|
+
<%= class_name %>.create!(
|
25
|
+
:code => "AL",
|
26
|
+
:name => "Albania",
|
27
|
+
:iso3 => "ALB",
|
28
|
+
:numeric => 8,
|
29
|
+
:eu => false)
|
30
|
+
|
31
|
+
<%= class_name %>.create!(
|
32
|
+
:code => "DZ",
|
33
|
+
:name => "Algeria",
|
34
|
+
:iso3 => "DZA",
|
35
|
+
:numeric => 12,
|
36
|
+
:eu => false)
|
37
|
+
|
38
|
+
<%= class_name %>.create!(
|
39
|
+
:code => "AS",
|
40
|
+
:name => "American Samoa",
|
41
|
+
:iso3 => "ASM",
|
42
|
+
:numeric => 16,
|
43
|
+
:eu => false)
|
44
|
+
|
45
|
+
<%= class_name %>.create!(
|
46
|
+
:code => "AD",
|
47
|
+
:name => "Andorra",
|
48
|
+
:iso3 => "AND",
|
49
|
+
:numeric => 20,
|
50
|
+
:eu => false)
|
51
|
+
|
52
|
+
<%= class_name %>.create!(
|
53
|
+
:code => "AO",
|
54
|
+
:name => "Angola",
|
55
|
+
:iso3 => "AGO",
|
56
|
+
:numeric => 24,
|
57
|
+
:eu => false)
|
58
|
+
|
59
|
+
<%= class_name %>.create!(
|
60
|
+
:code => "AI",
|
61
|
+
:name => "Anguilla",
|
62
|
+
:iso3 => "AIA",
|
63
|
+
:numeric => 660,
|
64
|
+
:eu => false)
|
65
|
+
|
66
|
+
<%= class_name %>.create!(
|
67
|
+
:code => "AQ",
|
68
|
+
:name => "Antarctica",
|
69
|
+
:iso3 => "ATA",
|
70
|
+
:numeric => 10,
|
71
|
+
:eu => false)
|
72
|
+
|
73
|
+
<%= class_name %>.create!(
|
74
|
+
:code => "AG",
|
75
|
+
:name => "Antigua and Barbuda",
|
76
|
+
:iso3 => "ATG",
|
77
|
+
:numeric => 28,
|
78
|
+
:eu => false)
|
79
|
+
|
80
|
+
<%= class_name %>.create!(
|
81
|
+
:code => "AR",
|
82
|
+
:name => "Argentina",
|
83
|
+
:iso3 => "ARG",
|
84
|
+
:numeric => 32,
|
85
|
+
:eu => false)
|
86
|
+
|
87
|
+
<%= class_name %>.create!(
|
88
|
+
:code => "AM",
|
89
|
+
:name => "Armenia",
|
90
|
+
:iso3 => "ARM",
|
91
|
+
:numeric => 51,
|
92
|
+
:eu => false)
|
93
|
+
|
94
|
+
<%= class_name %>.create!(
|
95
|
+
:code => "AW",
|
96
|
+
:name => "Aruba",
|
97
|
+
:iso3 => "ABW",
|
98
|
+
:numeric => 533,
|
99
|
+
:eu => false)
|
100
|
+
|
101
|
+
<%= class_name %>.create!(
|
102
|
+
:code => "AU",
|
103
|
+
:name => "Australia",
|
104
|
+
:iso3 => "AUS",
|
105
|
+
:numeric => 36,
|
106
|
+
:eu => false)
|
107
|
+
|
108
|
+
<%= class_name %>.create!(
|
109
|
+
:code => "AT",
|
110
|
+
:name => "Austria",
|
111
|
+
:iso3 => "AUT",
|
112
|
+
:numeric => 40,
|
113
|
+
:eu => true)
|
114
|
+
|
115
|
+
<%= class_name %>.create!(
|
116
|
+
:code => "AZ",
|
117
|
+
:name => "Azerbaijan",
|
118
|
+
:iso3 => "AZE",
|
119
|
+
:numeric => 31,
|
120
|
+
:eu => false)
|
121
|
+
|
122
|
+
<%= class_name %>.create!(
|
123
|
+
:code => "BS",
|
124
|
+
:name => "Bahamas",
|
125
|
+
:iso3 => "BHS",
|
126
|
+
:numeric => 44,
|
127
|
+
:eu => false)
|
128
|
+
|
129
|
+
<%= class_name %>.create!(
|
130
|
+
:code => "BH",
|
131
|
+
:name => "Bahrain",
|
132
|
+
:iso3 => "BHR",
|
133
|
+
:numeric => 48,
|
134
|
+
:eu => false)
|
135
|
+
|
136
|
+
<%= class_name %>.create!(
|
137
|
+
:code => "BD",
|
138
|
+
:name => "Bangladesh",
|
139
|
+
:iso3 => "BGD",
|
140
|
+
:numeric => 50,
|
141
|
+
:eu => false)
|
142
|
+
|
143
|
+
<%= class_name %>.create!(
|
144
|
+
:code => "BB",
|
145
|
+
:name => "Barbados",
|
146
|
+
:iso3 => "BRB",
|
147
|
+
:numeric => 52,
|
148
|
+
:eu => false)
|
149
|
+
|
150
|
+
<%= class_name %>.create!(
|
151
|
+
:code => "BY",
|
152
|
+
:name => "Belarus",
|
153
|
+
:iso3 => "BLR",
|
154
|
+
:numeric => 112,
|
155
|
+
:eu => false)
|
156
|
+
|
157
|
+
<%= class_name %>.create!(
|
158
|
+
:code => "BE",
|
159
|
+
:name => "Belgium",
|
160
|
+
:iso3 => "BEL",
|
161
|
+
:numeric => 56,
|
162
|
+
:eu => true)
|
163
|
+
|
164
|
+
<%= class_name %>.create!(
|
165
|
+
:code => "BZ",
|
166
|
+
:name => "Belize",
|
167
|
+
:iso3 => "BLZ",
|
168
|
+
:numeric => 84,
|
169
|
+
:eu => false)
|
170
|
+
|
171
|
+
<%= class_name %>.create!(
|
172
|
+
:code => "BJ",
|
173
|
+
:name => "Benin",
|
174
|
+
:iso3 => "BEN",
|
175
|
+
:numeric => 204,
|
176
|
+
:eu => false)
|
177
|
+
|
178
|
+
<%= class_name %>.create!(
|
179
|
+
:code => "BM",
|
180
|
+
:name => "Bermuda",
|
181
|
+
:iso3 => "BMU",
|
182
|
+
:numeric => 60,
|
183
|
+
:eu => false)
|
184
|
+
|
185
|
+
<%= class_name %>.create!(
|
186
|
+
:code => "BT",
|
187
|
+
:name => "Bhutan",
|
188
|
+
:iso3 => "BTN",
|
189
|
+
:numeric => 64,
|
190
|
+
:eu => false)
|
191
|
+
|
192
|
+
<%= class_name %>.create!(
|
193
|
+
:code => "BO",
|
194
|
+
:name => "Bolivia",
|
195
|
+
:iso3 => "BOL",
|
196
|
+
:numeric => 68,
|
197
|
+
:eu => false)
|
198
|
+
|
199
|
+
<%= class_name %>.create!(
|
200
|
+
:code => "BA",
|
201
|
+
:name => "Bosnia and Herzegovina",
|
202
|
+
:iso3 => "BIH",
|
203
|
+
:numeric => 70,
|
204
|
+
:eu => false)
|
205
|
+
|
206
|
+
<%= class_name %>.create!(
|
207
|
+
:code => "BW",
|
208
|
+
:name => "Botswana",
|
209
|
+
:iso3 => "BWA",
|
210
|
+
:numeric => 72,
|
211
|
+
:eu => false)
|
212
|
+
|
213
|
+
<%= class_name %>.create!(
|
214
|
+
:code => "BV",
|
215
|
+
:name => "Bouvet Island",
|
216
|
+
:iso3 => "BVT",
|
217
|
+
:numeric => 74,
|
218
|
+
:eu => false)
|
219
|
+
|
220
|
+
<%= class_name %>.create!(
|
221
|
+
:code => "BR",
|
222
|
+
:name => "Brazil",
|
223
|
+
:iso3 => "BRA",
|
224
|
+
:numeric => 76,
|
225
|
+
:eu => false)
|
226
|
+
|
227
|
+
<%= class_name %>.create!(
|
228
|
+
:code => "IO",
|
229
|
+
:name => "British Indian Ocean Territory",
|
230
|
+
:iso3 => "IOT",
|
231
|
+
:numeric => 86,
|
232
|
+
:eu => false)
|
233
|
+
|
234
|
+
<%= class_name %>.create!(
|
235
|
+
:code => "BN",
|
236
|
+
:name => "Brunei Darussalam",
|
237
|
+
:iso3 => "BRN",
|
238
|
+
:numeric => 96,
|
239
|
+
:eu => false)
|
240
|
+
|
241
|
+
<%= class_name %>.create!(
|
242
|
+
:code => "BG",
|
243
|
+
:name => "Bulgaria",
|
244
|
+
:iso3 => "BGR",
|
245
|
+
:numeric => 100,
|
246
|
+
:eu => true)
|
247
|
+
|
248
|
+
<%= class_name %>.create!(
|
249
|
+
:code => "BF",
|
250
|
+
:name => "Burkina Faso",
|
251
|
+
:iso3 => "BFA",
|
252
|
+
:numeric => 854,
|
253
|
+
:eu => false)
|
254
|
+
|
255
|
+
<%= class_name %>.create!(
|
256
|
+
:code => "BI",
|
257
|
+
:name => "Burundi",
|
258
|
+
:iso3 => "BDI",
|
259
|
+
:numeric => 108,
|
260
|
+
:eu => false)
|
261
|
+
|
262
|
+
<%= class_name %>.create!(
|
263
|
+
:code => "KH",
|
264
|
+
:name => "Cambodia",
|
265
|
+
:iso3 => "KHM",
|
266
|
+
:numeric => 116,
|
267
|
+
:eu => false)
|
268
|
+
|
269
|
+
<%= class_name %>.create!(
|
270
|
+
:code => "CM",
|
271
|
+
:name => "Cameroon",
|
272
|
+
:iso3 => "CMR",
|
273
|
+
:numeric => 120,
|
274
|
+
:eu => false)
|
275
|
+
|
276
|
+
<%= class_name %>.create!(
|
277
|
+
:code => "CA",
|
278
|
+
:name => "Canada",
|
279
|
+
:iso3 => "CAN",
|
280
|
+
:numeric => 124,
|
281
|
+
:eu => false)
|
282
|
+
|
283
|
+
<%= class_name %>.create!(
|
284
|
+
:code => "CV",
|
285
|
+
:name => "Cape Verde",
|
286
|
+
:iso3 => "CPV",
|
287
|
+
:numeric => 132,
|
288
|
+
:eu => false)
|
289
|
+
|
290
|
+
<%= class_name %>.create!(
|
291
|
+
:code => "KY",
|
292
|
+
:name => "Cayman Islands",
|
293
|
+
:iso3 => "CYM",
|
294
|
+
:numeric => 136,
|
295
|
+
:eu => false)
|
296
|
+
|
297
|
+
<%= class_name %>.create!(
|
298
|
+
:code => "CF",
|
299
|
+
:name => "Central African Republic",
|
300
|
+
:iso3 => "CAF",
|
301
|
+
:numeric => 140,
|
302
|
+
:eu => false)
|
303
|
+
|
304
|
+
<%= class_name %>.create!(
|
305
|
+
:code => "TD",
|
306
|
+
:name => "Chad",
|
307
|
+
:iso3 => "TCD",
|
308
|
+
:numeric => 148,
|
309
|
+
:eu => false)
|
310
|
+
|
311
|
+
<%= class_name %>.create!(
|
312
|
+
:code => "CL",
|
313
|
+
:name => "Chile",
|
314
|
+
:iso3 => "CHL",
|
315
|
+
:numeric => 152,
|
316
|
+
:eu => false)
|
317
|
+
|
318
|
+
<%= class_name %>.create!(
|
319
|
+
:code => "CN",
|
320
|
+
:name => "China",
|
321
|
+
:iso3 => "CHN",
|
322
|
+
:numeric => 156,
|
323
|
+
:eu => false)
|
324
|
+
|
325
|
+
<%= class_name %>.create!(
|
326
|
+
:code => "CX",
|
327
|
+
:name => "Christmas Island",
|
328
|
+
:iso3 => "CXR",
|
329
|
+
:numeric => 162,
|
330
|
+
:eu => false)
|
331
|
+
|
332
|
+
<%= class_name %>.create!(
|
333
|
+
:code => "CC",
|
334
|
+
:name => "Cocos (keeling) Islands",
|
335
|
+
:iso3 => "CCK",
|
336
|
+
:numeric => 166,
|
337
|
+
:eu => false)
|
338
|
+
|
339
|
+
<%= class_name %>.create!(
|
340
|
+
:code => "CO",
|
341
|
+
:name => "Colombia",
|
342
|
+
:iso3 => "COL",
|
343
|
+
:numeric => 170,
|
344
|
+
:eu => false)
|
345
|
+
|
346
|
+
<%= class_name %>.create!(
|
347
|
+
:code => "KM",
|
348
|
+
:name => "Comoros",
|
349
|
+
:iso3 => "COM",
|
350
|
+
:numeric => 174,
|
351
|
+
:eu => false)
|
352
|
+
|
353
|
+
<%= class_name %>.create!(
|
354
|
+
:code => "CG",
|
355
|
+
:name => "Congo",
|
356
|
+
:iso3 => "COG",
|
357
|
+
:numeric => 178,
|
358
|
+
:eu => false)
|
359
|
+
|
360
|
+
<%= class_name %>.create!(
|
361
|
+
:code => "CD",
|
362
|
+
:name => "Congo, The Democratic Republic Of The",
|
363
|
+
:iso3 => "COD",
|
364
|
+
:numeric => 180,
|
365
|
+
:eu => false)
|
366
|
+
|
367
|
+
<%= class_name %>.create!(
|
368
|
+
:code => "CK",
|
369
|
+
:name => "Cook Islands",
|
370
|
+
:iso3 => "COK",
|
371
|
+
:numeric => 184,
|
372
|
+
:eu => false)
|
373
|
+
|
374
|
+
<%= class_name %>.create!(
|
375
|
+
:code => "CR",
|
376
|
+
:name => "Costa Rica",
|
377
|
+
:iso3 => "CRI",
|
378
|
+
:numeric => 188,
|
379
|
+
:eu => false)
|
380
|
+
|
381
|
+
<%= class_name %>.create!(
|
382
|
+
:code => "HR",
|
383
|
+
:name => "Croatia",
|
384
|
+
:iso3 => "HRV",
|
385
|
+
:numeric => 191,
|
386
|
+
:eu => false)
|
387
|
+
|
388
|
+
<%= class_name %>.create!(
|
389
|
+
:code => "CU",
|
390
|
+
:name => "Cuba",
|
391
|
+
:iso3 => "CUB",
|
392
|
+
:numeric => 192,
|
393
|
+
:eu => false)
|
394
|
+
|
395
|
+
<%= class_name %>.create!(
|
396
|
+
:code => "CY",
|
397
|
+
:name => "Cyprus",
|
398
|
+
:iso3 => "CYP",
|
399
|
+
:numeric => 196,
|
400
|
+
:eu => true)
|
401
|
+
|
402
|
+
<%= class_name %>.create!(
|
403
|
+
:code => "CZ",
|
404
|
+
:name => "Czech Republic",
|
405
|
+
:iso3 => "CZE",
|
406
|
+
:numeric => 203,
|
407
|
+
:eu => true)
|
408
|
+
|
409
|
+
<%= class_name %>.create!(
|
410
|
+
:code => "CI",
|
411
|
+
:name => "Côte D'ivoire",
|
412
|
+
:iso3 => "CIV",
|
413
|
+
:numeric => 384,
|
414
|
+
:eu => false)
|
415
|
+
|
416
|
+
<%= class_name %>.create!(
|
417
|
+
:code => "DK",
|
418
|
+
:name => "Denmark",
|
419
|
+
:iso3 => "DNK",
|
420
|
+
:numeric => 208,
|
421
|
+
:eu => true)
|
422
|
+
|
423
|
+
<%= class_name %>.create!(
|
424
|
+
:code => "DJ",
|
425
|
+
:name => "Djibouti",
|
426
|
+
:iso3 => "DJI",
|
427
|
+
:numeric => 262,
|
428
|
+
:eu => false)
|
429
|
+
|
430
|
+
<%= class_name %>.create!(
|
431
|
+
:code => "DM",
|
432
|
+
:name => "Dominica",
|
433
|
+
:iso3 => "DMA",
|
434
|
+
:numeric => 212,
|
435
|
+
:eu => false)
|
436
|
+
|
437
|
+
<%= class_name %>.create!(
|
438
|
+
:code => "DO",
|
439
|
+
:name => "Dominican Republic",
|
440
|
+
:iso3 => "DOM",
|
441
|
+
:numeric => 214,
|
442
|
+
:eu => false)
|
443
|
+
|
444
|
+
<%= class_name %>.create!(
|
445
|
+
:code => "EC",
|
446
|
+
:name => "Ecuador",
|
447
|
+
:iso3 => "ECU",
|
448
|
+
:numeric => 218,
|
449
|
+
:eu => false)
|
450
|
+
|
451
|
+
<%= class_name %>.create!(
|
452
|
+
:code => "EG",
|
453
|
+
:name => "Egypt",
|
454
|
+
:iso3 => "EGY",
|
455
|
+
:numeric => 818,
|
456
|
+
:eu => false)
|
457
|
+
|
458
|
+
<%= class_name %>.create!(
|
459
|
+
:code => "SV",
|
460
|
+
:name => "El Salvador",
|
461
|
+
:iso3 => "SLV",
|
462
|
+
:numeric => 222,
|
463
|
+
:eu => false)
|
464
|
+
|
465
|
+
<%= class_name %>.create!(
|
466
|
+
:code => "GQ",
|
467
|
+
:name => "Equatorial Guinea",
|
468
|
+
:iso3 => "GNQ",
|
469
|
+
:numeric => 226,
|
470
|
+
:eu => false)
|
471
|
+
|
472
|
+
<%= class_name %>.create!(
|
473
|
+
:code => "ER",
|
474
|
+
:name => "Eritrea",
|
475
|
+
:iso3 => "ERI",
|
476
|
+
:numeric => 232,
|
477
|
+
:eu => false)
|
478
|
+
|
479
|
+
<%= class_name %>.create!(
|
480
|
+
:code => "EE",
|
481
|
+
:name => "Estonia",
|
482
|
+
:iso3 => "EST",
|
483
|
+
:numeric => 233,
|
484
|
+
:eu => true)
|
485
|
+
|
486
|
+
<%= class_name %>.create!(
|
487
|
+
:code => "ET",
|
488
|
+
:name => "Ethiopia",
|
489
|
+
:iso3 => "ETH",
|
490
|
+
:numeric => 231,
|
491
|
+
:eu => false)
|
492
|
+
|
493
|
+
<%= class_name %>.create!(
|
494
|
+
:code => "FK",
|
495
|
+
:name => "Falkland Islands (malvinas)",
|
496
|
+
:iso3 => "FLK",
|
497
|
+
:numeric => 238,
|
498
|
+
:eu => false)
|
499
|
+
|
500
|
+
<%= class_name %>.create!(
|
501
|
+
:code => "FO",
|
502
|
+
:name => "Faroe Islands",
|
503
|
+
:iso3 => "FRO",
|
504
|
+
:numeric => 234,
|
505
|
+
:eu => false)
|
506
|
+
|
507
|
+
<%= class_name %>.create!(
|
508
|
+
:code => "FJ",
|
509
|
+
:name => "Fiji",
|
510
|
+
:iso3 => "FJI",
|
511
|
+
:numeric => 242,
|
512
|
+
:eu => false)
|
513
|
+
|
514
|
+
<%= class_name %>.create!(
|
515
|
+
:code => "FI",
|
516
|
+
:name => "Finland",
|
517
|
+
:iso3 => "FIN",
|
518
|
+
:numeric => 246,
|
519
|
+
:eu => true)
|
520
|
+
|
521
|
+
<%= class_name %>.create!(
|
522
|
+
:code => "FR",
|
523
|
+
:name => "France",
|
524
|
+
:iso3 => "FRA",
|
525
|
+
:numeric => 250,
|
526
|
+
:eu => true)
|
527
|
+
|
528
|
+
<%= class_name %>.create!(
|
529
|
+
:code => "GF",
|
530
|
+
:name => "French Guiana",
|
531
|
+
:iso3 => "GUF",
|
532
|
+
:numeric => 254,
|
533
|
+
:eu => false)
|
534
|
+
|
535
|
+
<%= class_name %>.create!(
|
536
|
+
:code => "PF",
|
537
|
+
:name => "French Polynesia",
|
538
|
+
:iso3 => "PYF",
|
539
|
+
:numeric => 258,
|
540
|
+
:eu => false)
|
541
|
+
|
542
|
+
<%= class_name %>.create!(
|
543
|
+
:code => "TF",
|
544
|
+
:name => "French Southern Territories",
|
545
|
+
:iso3 => "ATF",
|
546
|
+
:numeric => 260,
|
547
|
+
:eu => false)
|
548
|
+
|
549
|
+
<%= class_name %>.create!(
|
550
|
+
:code => "GA",
|
551
|
+
:name => "Gabon",
|
552
|
+
:iso3 => "GAB",
|
553
|
+
:numeric => 266,
|
554
|
+
:eu => false)
|
555
|
+
|
556
|
+
<%= class_name %>.create!(
|
557
|
+
:code => "GM",
|
558
|
+
:name => "Gambia",
|
559
|
+
:iso3 => "GMB",
|
560
|
+
:numeric => 270,
|
561
|
+
:eu => false)
|
562
|
+
|
563
|
+
<%= class_name %>.create!(
|
564
|
+
:code => "GE",
|
565
|
+
:name => "Georgia",
|
566
|
+
:iso3 => "GEO",
|
567
|
+
:numeric => 268,
|
568
|
+
:eu => false)
|
569
|
+
|
570
|
+
<%= class_name %>.create!(
|
571
|
+
:code => "DE",
|
572
|
+
:name => "Germany",
|
573
|
+
:iso3 => "DEU",
|
574
|
+
:numeric => 276,
|
575
|
+
:eu => true)
|
576
|
+
|
577
|
+
<%= class_name %>.create!(
|
578
|
+
:code => "GH",
|
579
|
+
:name => "Ghana",
|
580
|
+
:iso3 => "GHA",
|
581
|
+
:numeric => 288,
|
582
|
+
:eu => false)
|
583
|
+
|
584
|
+
<%= class_name %>.create!(
|
585
|
+
:code => "GI",
|
586
|
+
:name => "Gibraltar",
|
587
|
+
:iso3 => "GIB",
|
588
|
+
:numeric => 292,
|
589
|
+
:eu => false)
|
590
|
+
|
591
|
+
<%= class_name %>.create!(
|
592
|
+
:code => "GR",
|
593
|
+
:name => "Greece",
|
594
|
+
:iso3 => "GRC",
|
595
|
+
:numeric => 300,
|
596
|
+
:eu => true)
|
597
|
+
|
598
|
+
<%= class_name %>.create!(
|
599
|
+
:code => "GL",
|
600
|
+
:name => "Greenland",
|
601
|
+
:iso3 => "GRL",
|
602
|
+
:numeric => 304,
|
603
|
+
:eu => false)
|
604
|
+
|
605
|
+
<%= class_name %>.create!(
|
606
|
+
:code => "GD",
|
607
|
+
:name => "Grenada",
|
608
|
+
:iso3 => "GRD",
|
609
|
+
:numeric => 308,
|
610
|
+
:eu => false)
|
611
|
+
|
612
|
+
<%= class_name %>.create!(
|
613
|
+
:code => "GP",
|
614
|
+
:name => "Guadeloupe",
|
615
|
+
:iso3 => "GLP",
|
616
|
+
:numeric => 312,
|
617
|
+
:eu => false)
|
618
|
+
|
619
|
+
<%= class_name %>.create!(
|
620
|
+
:code => "GU",
|
621
|
+
:name => "Guam",
|
622
|
+
:iso3 => "GUM",
|
623
|
+
:numeric => 316,
|
624
|
+
:eu => false)
|
625
|
+
|
626
|
+
<%= class_name %>.create!(
|
627
|
+
:code => "GT",
|
628
|
+
:name => "Guatemala",
|
629
|
+
:iso3 => "GTM",
|
630
|
+
:numeric => 320,
|
631
|
+
:eu => false)
|
632
|
+
|
633
|
+
<%= class_name %>.create!(
|
634
|
+
:code => "GG",
|
635
|
+
:name => "Guernsey",
|
636
|
+
:iso3 => "GGY",
|
637
|
+
:numeric => 831,
|
638
|
+
:eu => false)
|
639
|
+
|
640
|
+
<%= class_name %>.create!(
|
641
|
+
:code => "GN",
|
642
|
+
:name => "Guinea",
|
643
|
+
:iso3 => "GIN",
|
644
|
+
:numeric => 324,
|
645
|
+
:eu => false)
|
646
|
+
|
647
|
+
<%= class_name %>.create!(
|
648
|
+
:code => "GW",
|
649
|
+
:name => "Guinea-bissau",
|
650
|
+
:iso3 => "GNB",
|
651
|
+
:numeric => 624,
|
652
|
+
:eu => false)
|
653
|
+
|
654
|
+
<%= class_name %>.create!(
|
655
|
+
:code => "GY",
|
656
|
+
:name => "Guyana",
|
657
|
+
:iso3 => "GUY",
|
658
|
+
:numeric => 328,
|
659
|
+
:eu => false)
|
660
|
+
|
661
|
+
<%= class_name %>.create!(
|
662
|
+
:code => "HT",
|
663
|
+
:name => "Haiti",
|
664
|
+
:iso3 => "HTI",
|
665
|
+
:numeric => 332,
|
666
|
+
:eu => false)
|
667
|
+
|
668
|
+
<%= class_name %>.create!(
|
669
|
+
:code => "HM",
|
670
|
+
:name => "Heard Island and Mcdonald Islands",
|
671
|
+
:iso3 => "HMD",
|
672
|
+
:numeric => 334,
|
673
|
+
:eu => false)
|
674
|
+
|
675
|
+
<%= class_name %>.create!(
|
676
|
+
:code => "HN",
|
677
|
+
:name => "Honduras",
|
678
|
+
:iso3 => "HND",
|
679
|
+
:numeric => 340,
|
680
|
+
:eu => false)
|
681
|
+
|
682
|
+
<%= class_name %>.create!(
|
683
|
+
:code => "HK",
|
684
|
+
:name => "Hong Kong",
|
685
|
+
:iso3 => "HKG",
|
686
|
+
:numeric => 344,
|
687
|
+
:eu => false)
|
688
|
+
|
689
|
+
<%= class_name %>.create!(
|
690
|
+
:code => "HU",
|
691
|
+
:name => "Hungary",
|
692
|
+
:iso3 => "HUN",
|
693
|
+
:numeric => 348,
|
694
|
+
:eu => true)
|
695
|
+
|
696
|
+
<%= class_name %>.create!(
|
697
|
+
:code => "IS",
|
698
|
+
:name => "Iceland",
|
699
|
+
:iso3 => "ISL",
|
700
|
+
:numeric => 352,
|
701
|
+
:eu => false)
|
702
|
+
|
703
|
+
<%= class_name %>.create!(
|
704
|
+
:code => "IN",
|
705
|
+
:name => "India",
|
706
|
+
:iso3 => "IND",
|
707
|
+
:numeric => 356,
|
708
|
+
:eu => false)
|
709
|
+
|
710
|
+
<%= class_name %>.create!(
|
711
|
+
:code => "ID",
|
712
|
+
:name => "Indonesia",
|
713
|
+
:iso3 => "IDN",
|
714
|
+
:numeric => 360,
|
715
|
+
:eu => false)
|
716
|
+
|
717
|
+
<%= class_name %>.create!(
|
718
|
+
:code => "IR",
|
719
|
+
:name => "Iran, Islamic Republic Of",
|
720
|
+
:iso3 => "IRN",
|
721
|
+
:numeric => 364,
|
722
|
+
:eu => false)
|
723
|
+
|
724
|
+
<%= class_name %>.create!(
|
725
|
+
:code => "IQ",
|
726
|
+
:name => "Iraq",
|
727
|
+
:iso3 => "IRQ",
|
728
|
+
:numeric => 368,
|
729
|
+
:eu => false)
|
730
|
+
|
731
|
+
<%= class_name %>.create!(
|
732
|
+
:code => "IE",
|
733
|
+
:name => "Ireland",
|
734
|
+
:iso3 => "IRL",
|
735
|
+
:numeric => 372,
|
736
|
+
:eu => true)
|
737
|
+
|
738
|
+
<%= class_name %>.create!(
|
739
|
+
:code => "IM",
|
740
|
+
:name => "Isle Of Man",
|
741
|
+
:iso3 => "IMN",
|
742
|
+
:numeric => 833,
|
743
|
+
:eu => false)
|
744
|
+
|
745
|
+
<%= class_name %>.create!(
|
746
|
+
:code => "IL",
|
747
|
+
:name => "Israel",
|
748
|
+
:iso3 => "ISR",
|
749
|
+
:numeric => 376,
|
750
|
+
:eu => false)
|
751
|
+
|
752
|
+
<%= class_name %>.create!(
|
753
|
+
:code => "IT",
|
754
|
+
:name => "Italy",
|
755
|
+
:iso3 => "ITA",
|
756
|
+
:numeric => 380,
|
757
|
+
:eu => true)
|
758
|
+
|
759
|
+
<%= class_name %>.create!(
|
760
|
+
:code => "JM",
|
761
|
+
:name => "Jamaica",
|
762
|
+
:iso3 => "JAM",
|
763
|
+
:numeric => 388,
|
764
|
+
:eu => false)
|
765
|
+
|
766
|
+
<%= class_name %>.create!(
|
767
|
+
:code => "JP",
|
768
|
+
:name => "Japan",
|
769
|
+
:iso3 => "JPN",
|
770
|
+
:numeric => 392,
|
771
|
+
:eu => false)
|
772
|
+
|
773
|
+
<%= class_name %>.create!(
|
774
|
+
:code => "JE",
|
775
|
+
:name => "Jersey",
|
776
|
+
:iso3 => "JEY",
|
777
|
+
:numeric => 832,
|
778
|
+
:eu => false)
|
779
|
+
|
780
|
+
<%= class_name %>.create!(
|
781
|
+
:code => "JO",
|
782
|
+
:name => "Jordan",
|
783
|
+
:iso3 => "JOR",
|
784
|
+
:numeric => 400,
|
785
|
+
:eu => false)
|
786
|
+
|
787
|
+
<%= class_name %>.create!(
|
788
|
+
:code => "KZ",
|
789
|
+
:name => "Kazakhstan",
|
790
|
+
:iso3 => "KAZ",
|
791
|
+
:numeric => 398,
|
792
|
+
:eu => false)
|
793
|
+
|
794
|
+
<%= class_name %>.create!(
|
795
|
+
:code => "KE",
|
796
|
+
:name => "Kenya",
|
797
|
+
:iso3 => "KEN",
|
798
|
+
:numeric => 404,
|
799
|
+
:eu => false)
|
800
|
+
|
801
|
+
<%= class_name %>.create!(
|
802
|
+
:code => "KI",
|
803
|
+
:name => "Kiribati",
|
804
|
+
:iso3 => "KIR",
|
805
|
+
:numeric => 296,
|
806
|
+
:eu => false)
|
807
|
+
|
808
|
+
<%= class_name %>.create!(
|
809
|
+
:code => "KP",
|
810
|
+
:name => "Korea, Democratic People's Republic Of",
|
811
|
+
:iso3 => "PRK",
|
812
|
+
:numeric => 408,
|
813
|
+
:eu => false)
|
814
|
+
|
815
|
+
<%= class_name %>.create!(
|
816
|
+
:code => "KR",
|
817
|
+
:name => "Korea, Republic Of",
|
818
|
+
:iso3 => "KOR",
|
819
|
+
:numeric => 410,
|
820
|
+
:eu => false)
|
821
|
+
|
822
|
+
<%= class_name %>.create!(
|
823
|
+
:code => "KW",
|
824
|
+
:name => "Kuwait",
|
825
|
+
:iso3 => "KWT",
|
826
|
+
:numeric => 414,
|
827
|
+
:eu => false)
|
828
|
+
|
829
|
+
<%= class_name %>.create!(
|
830
|
+
:code => "KG",
|
831
|
+
:name => "Kyrgyzstan",
|
832
|
+
:iso3 => "KGZ",
|
833
|
+
:numeric => 417,
|
834
|
+
:eu => false)
|
835
|
+
|
836
|
+
<%= class_name %>.create!(
|
837
|
+
:code => "LA",
|
838
|
+
:name => "Lao People's Democratic Republic",
|
839
|
+
:iso3 => "LAO",
|
840
|
+
:numeric => 418,
|
841
|
+
:eu => false)
|
842
|
+
|
843
|
+
<%= class_name %>.create!(
|
844
|
+
:code => "LV",
|
845
|
+
:name => "Latvia",
|
846
|
+
:iso3 => "LVA",
|
847
|
+
:numeric => 428,
|
848
|
+
:eu => true)
|
849
|
+
|
850
|
+
<%= class_name %>.create!(
|
851
|
+
:code => "LB",
|
852
|
+
:name => "Lebanon",
|
853
|
+
:iso3 => "LBN",
|
854
|
+
:numeric => 422,
|
855
|
+
:eu => false)
|
856
|
+
|
857
|
+
<%= class_name %>.create!(
|
858
|
+
:code => "LS",
|
859
|
+
:name => "Lesotho",
|
860
|
+
:iso3 => "LSO",
|
861
|
+
:numeric => 426,
|
862
|
+
:eu => false)
|
863
|
+
|
864
|
+
<%= class_name %>.create!(
|
865
|
+
:code => "LR",
|
866
|
+
:name => "Liberia",
|
867
|
+
:iso3 => "LBR",
|
868
|
+
:numeric => 430,
|
869
|
+
:eu => false)
|
870
|
+
|
871
|
+
<%= class_name %>.create!(
|
872
|
+
:code => "LY",
|
873
|
+
:name => "Libyan Arab Jamahiriya",
|
874
|
+
:iso3 => "LBY",
|
875
|
+
:numeric => 434,
|
876
|
+
:eu => false)
|
877
|
+
|
878
|
+
<%= class_name %>.create!(
|
879
|
+
:code => "LI",
|
880
|
+
:name => "Liechtenstein",
|
881
|
+
:iso3 => "LIE",
|
882
|
+
:numeric => 438,
|
883
|
+
:eu => false)
|
884
|
+
|
885
|
+
<%= class_name %>.create!(
|
886
|
+
:code => "LT",
|
887
|
+
:name => "Lithuania",
|
888
|
+
:iso3 => "LTU",
|
889
|
+
:numeric => 440,
|
890
|
+
:eu => true)
|
891
|
+
|
892
|
+
<%= class_name %>.create!(
|
893
|
+
:code => "LU",
|
894
|
+
:name => "Luxembourg",
|
895
|
+
:iso3 => "LUX",
|
896
|
+
:numeric => 442,
|
897
|
+
:eu => true)
|
898
|
+
|
899
|
+
<%= class_name %>.create!(
|
900
|
+
:code => "MO",
|
901
|
+
:name => "Macao",
|
902
|
+
:iso3 => "MAC",
|
903
|
+
:numeric => 446,
|
904
|
+
:eu => false)
|
905
|
+
|
906
|
+
<%= class_name %>.create!(
|
907
|
+
:code => "MK",
|
908
|
+
:name => "Macedonia, The Former Yugoslav Republic Of",
|
909
|
+
:iso3 => "MKD",
|
910
|
+
:numeric => 807,
|
911
|
+
:eu => false)
|
912
|
+
|
913
|
+
<%= class_name %>.create!(
|
914
|
+
:code => "MG",
|
915
|
+
:name => "Madagascar",
|
916
|
+
:iso3 => "MDG",
|
917
|
+
:numeric => 450,
|
918
|
+
:eu => false)
|
919
|
+
|
920
|
+
<%= class_name %>.create!(
|
921
|
+
:code => "MW",
|
922
|
+
:name => "Malawi",
|
923
|
+
:iso3 => "MWI",
|
924
|
+
:numeric => 454,
|
925
|
+
:eu => false)
|
926
|
+
|
927
|
+
<%= class_name %>.create!(
|
928
|
+
:code => "MY",
|
929
|
+
:name => "Malaysia",
|
930
|
+
:iso3 => "MYS",
|
931
|
+
:numeric => 458,
|
932
|
+
:eu => false)
|
933
|
+
|
934
|
+
<%= class_name %>.create!(
|
935
|
+
:code => "MV",
|
936
|
+
:name => "Maldives",
|
937
|
+
:iso3 => "MDV",
|
938
|
+
:numeric => 462,
|
939
|
+
:eu => false)
|
940
|
+
|
941
|
+
<%= class_name %>.create!(
|
942
|
+
:code => "ML",
|
943
|
+
:name => "Mali",
|
944
|
+
:iso3 => "MLI",
|
945
|
+
:numeric => 466,
|
946
|
+
:eu => false)
|
947
|
+
|
948
|
+
<%= class_name %>.create!(
|
949
|
+
:code => "MT",
|
950
|
+
:name => "Malta",
|
951
|
+
:iso3 => "MLT",
|
952
|
+
:numeric => 470,
|
953
|
+
:eu => true)
|
954
|
+
|
955
|
+
<%= class_name %>.create!(
|
956
|
+
:code => "MH",
|
957
|
+
:name => "Marshall Islands",
|
958
|
+
:iso3 => "MHL",
|
959
|
+
:numeric => 584,
|
960
|
+
:eu => false)
|
961
|
+
|
962
|
+
<%= class_name %>.create!(
|
963
|
+
:code => "MQ",
|
964
|
+
:name => "Martinique",
|
965
|
+
:iso3 => "MTQ",
|
966
|
+
:numeric => 474,
|
967
|
+
:eu => false)
|
968
|
+
|
969
|
+
<%= class_name %>.create!(
|
970
|
+
:code => "MR",
|
971
|
+
:name => "Mauritania",
|
972
|
+
:iso3 => "MRT",
|
973
|
+
:numeric => 478,
|
974
|
+
:eu => false)
|
975
|
+
|
976
|
+
<%= class_name %>.create!(
|
977
|
+
:code => "MU",
|
978
|
+
:name => "Mauritius",
|
979
|
+
:iso3 => "MUS",
|
980
|
+
:numeric => 480,
|
981
|
+
:eu => false)
|
982
|
+
|
983
|
+
<%= class_name %>.create!(
|
984
|
+
:code => "YT",
|
985
|
+
:name => "Mayotte",
|
986
|
+
:iso3 => "MYT",
|
987
|
+
:numeric => 175,
|
988
|
+
:eu => false)
|
989
|
+
|
990
|
+
<%= class_name %>.create!(
|
991
|
+
:code => "MX",
|
992
|
+
:name => "Mexico",
|
993
|
+
:iso3 => "MEX",
|
994
|
+
:numeric => 484,
|
995
|
+
:eu => false)
|
996
|
+
|
997
|
+
<%= class_name %>.create!(
|
998
|
+
:code => "FM",
|
999
|
+
:name => "Micronesia, Federated States Of",
|
1000
|
+
:iso3 => "FSM",
|
1001
|
+
:numeric => 583,
|
1002
|
+
:eu => false)
|
1003
|
+
|
1004
|
+
<%= class_name %>.create!(
|
1005
|
+
:code => "MD",
|
1006
|
+
:name => "Moldova, Republic Of",
|
1007
|
+
:iso3 => "MDA",
|
1008
|
+
:numeric => 498,
|
1009
|
+
:eu => false)
|
1010
|
+
|
1011
|
+
<%= class_name %>.create!(
|
1012
|
+
:code => "MC",
|
1013
|
+
:name => "Monaco",
|
1014
|
+
:iso3 => "MCO",
|
1015
|
+
:numeric => 492,
|
1016
|
+
:eu => false)
|
1017
|
+
|
1018
|
+
<%= class_name %>.create!(
|
1019
|
+
:code => "MN",
|
1020
|
+
:name => "Mongolia",
|
1021
|
+
:iso3 => "MNG",
|
1022
|
+
:numeric => 496,
|
1023
|
+
:eu => false)
|
1024
|
+
|
1025
|
+
<%= class_name %>.create!(
|
1026
|
+
:code => "ME",
|
1027
|
+
:name => "Montenegro",
|
1028
|
+
:iso3 => "MNE",
|
1029
|
+
:numeric => 499,
|
1030
|
+
:eu => false)
|
1031
|
+
|
1032
|
+
<%= class_name %>.create!(
|
1033
|
+
:code => "MS",
|
1034
|
+
:name => "Montserrat",
|
1035
|
+
:iso3 => "MSR",
|
1036
|
+
:numeric => 500,
|
1037
|
+
:eu => false)
|
1038
|
+
|
1039
|
+
<%= class_name %>.create!(
|
1040
|
+
:code => "MA",
|
1041
|
+
:name => "Morocco",
|
1042
|
+
:iso3 => "MAR",
|
1043
|
+
:numeric => 504,
|
1044
|
+
:eu => false)
|
1045
|
+
|
1046
|
+
<%= class_name %>.create!(
|
1047
|
+
:code => "MZ",
|
1048
|
+
:name => "Mozambique",
|
1049
|
+
:iso3 => "MOZ",
|
1050
|
+
:numeric => 508,
|
1051
|
+
:eu => false)
|
1052
|
+
|
1053
|
+
<%= class_name %>.create!(
|
1054
|
+
:code => "MM",
|
1055
|
+
:name => "Myanmar",
|
1056
|
+
:iso3 => "MMR",
|
1057
|
+
:numeric => 104,
|
1058
|
+
:eu => false)
|
1059
|
+
|
1060
|
+
<%= class_name %>.create!(
|
1061
|
+
:code => "NA",
|
1062
|
+
:name => "Namibia",
|
1063
|
+
:iso3 => "NAM",
|
1064
|
+
:numeric => 516,
|
1065
|
+
:eu => false)
|
1066
|
+
|
1067
|
+
<%= class_name %>.create!(
|
1068
|
+
:code => "NR",
|
1069
|
+
:name => "Nauru",
|
1070
|
+
:iso3 => "NRU",
|
1071
|
+
:numeric => 520,
|
1072
|
+
:eu => false)
|
1073
|
+
|
1074
|
+
<%= class_name %>.create!(
|
1075
|
+
:code => "NP",
|
1076
|
+
:name => "Nepal",
|
1077
|
+
:iso3 => "NPL",
|
1078
|
+
:numeric => 524,
|
1079
|
+
:eu => false)
|
1080
|
+
|
1081
|
+
<%= class_name %>.create!(
|
1082
|
+
:code => "NL",
|
1083
|
+
:name => "Netherlands",
|
1084
|
+
:iso3 => "NLD",
|
1085
|
+
:numeric => 528,
|
1086
|
+
:eu => true)
|
1087
|
+
|
1088
|
+
<%= class_name %>.create!(
|
1089
|
+
:code => "AN",
|
1090
|
+
:name => "Netherlands Antilles",
|
1091
|
+
:iso3 => "ANT",
|
1092
|
+
:numeric => 530,
|
1093
|
+
:eu => false)
|
1094
|
+
|
1095
|
+
<%= class_name %>.create!(
|
1096
|
+
:code => "NC",
|
1097
|
+
:name => "New Caledonia",
|
1098
|
+
:iso3 => "NCL",
|
1099
|
+
:numeric => 540,
|
1100
|
+
:eu => false)
|
1101
|
+
|
1102
|
+
<%= class_name %>.create!(
|
1103
|
+
:code => "NZ",
|
1104
|
+
:name => "New Zealand",
|
1105
|
+
:iso3 => "NZL",
|
1106
|
+
:numeric => 554,
|
1107
|
+
:eu => false)
|
1108
|
+
|
1109
|
+
<%= class_name %>.create!(
|
1110
|
+
:code => "NI",
|
1111
|
+
:name => "Nicaragua",
|
1112
|
+
:iso3 => "NIC",
|
1113
|
+
:numeric => 558,
|
1114
|
+
:eu => false)
|
1115
|
+
|
1116
|
+
<%= class_name %>.create!(
|
1117
|
+
:code => "NE",
|
1118
|
+
:name => "Niger",
|
1119
|
+
:iso3 => "NER",
|
1120
|
+
:numeric => 562,
|
1121
|
+
:eu => false)
|
1122
|
+
|
1123
|
+
<%= class_name %>.create!(
|
1124
|
+
:code => "NG",
|
1125
|
+
:name => "Nigeria",
|
1126
|
+
:iso3 => "NGA",
|
1127
|
+
:numeric => 566,
|
1128
|
+
:eu => false)
|
1129
|
+
|
1130
|
+
<%= class_name %>.create!(
|
1131
|
+
:code => "NU",
|
1132
|
+
:name => "Niue",
|
1133
|
+
:iso3 => "NIU",
|
1134
|
+
:numeric => 570,
|
1135
|
+
:eu => false)
|
1136
|
+
|
1137
|
+
<%= class_name %>.create!(
|
1138
|
+
:code => "NF",
|
1139
|
+
:name => "Norfolk Island",
|
1140
|
+
:iso3 => "NFK",
|
1141
|
+
:numeric => 574,
|
1142
|
+
:eu => false)
|
1143
|
+
|
1144
|
+
<%= class_name %>.create!(
|
1145
|
+
:code => "MP",
|
1146
|
+
:name => "Northern Mariana Islands",
|
1147
|
+
:iso3 => "MNP",
|
1148
|
+
:numeric => 580,
|
1149
|
+
:eu => false)
|
1150
|
+
|
1151
|
+
<%= class_name %>.create!(
|
1152
|
+
:code => "NO",
|
1153
|
+
:name => "Norway",
|
1154
|
+
:iso3 => "NOR",
|
1155
|
+
:numeric => 578,
|
1156
|
+
:eu => false)
|
1157
|
+
|
1158
|
+
<%= class_name %>.create!(
|
1159
|
+
:code => "OM",
|
1160
|
+
:name => "Oman",
|
1161
|
+
:iso3 => "OMN",
|
1162
|
+
:numeric => 512,
|
1163
|
+
:eu => false)
|
1164
|
+
|
1165
|
+
<%= class_name %>.create!(
|
1166
|
+
:code => "PK",
|
1167
|
+
:name => "Pakistan",
|
1168
|
+
:iso3 => "PAK",
|
1169
|
+
:numeric => 586,
|
1170
|
+
:eu => false)
|
1171
|
+
|
1172
|
+
<%= class_name %>.create!(
|
1173
|
+
:code => "PW",
|
1174
|
+
:name => "Palau",
|
1175
|
+
:iso3 => "PLW",
|
1176
|
+
:numeric => 585,
|
1177
|
+
:eu => false)
|
1178
|
+
|
1179
|
+
<%= class_name %>.create!(
|
1180
|
+
:code => "PS",
|
1181
|
+
:name => "Palestinian Territory, Occupied",
|
1182
|
+
:iso3 => "PSE",
|
1183
|
+
:numeric => 275,
|
1184
|
+
:eu => false)
|
1185
|
+
|
1186
|
+
<%= class_name %>.create!(
|
1187
|
+
:code => "PA",
|
1188
|
+
:name => "Panama",
|
1189
|
+
:iso3 => "PAN",
|
1190
|
+
:numeric => 591,
|
1191
|
+
:eu => false)
|
1192
|
+
|
1193
|
+
<%= class_name %>.create!(
|
1194
|
+
:code => "PG",
|
1195
|
+
:name => "Papua New Guinea",
|
1196
|
+
:iso3 => "PNG",
|
1197
|
+
:numeric => 598,
|
1198
|
+
:eu => false)
|
1199
|
+
|
1200
|
+
<%= class_name %>.create!(
|
1201
|
+
:code => "PY",
|
1202
|
+
:name => "Paraguay",
|
1203
|
+
:iso3 => "PRY",
|
1204
|
+
:numeric => 600,
|
1205
|
+
:eu => false)
|
1206
|
+
|
1207
|
+
<%= class_name %>.create!(
|
1208
|
+
:code => "PE",
|
1209
|
+
:name => "Peru",
|
1210
|
+
:iso3 => "PER",
|
1211
|
+
:numeric => 604,
|
1212
|
+
:eu => false)
|
1213
|
+
|
1214
|
+
<%= class_name %>.create!(
|
1215
|
+
:code => "PH",
|
1216
|
+
:name => "Philippines",
|
1217
|
+
:iso3 => "PHL",
|
1218
|
+
:numeric => 608,
|
1219
|
+
:eu => false)
|
1220
|
+
|
1221
|
+
<%= class_name %>.create!(
|
1222
|
+
:code => "PN",
|
1223
|
+
:name => "Pitcairn",
|
1224
|
+
:iso3 => "PCN",
|
1225
|
+
:numeric => 612,
|
1226
|
+
:eu => false)
|
1227
|
+
|
1228
|
+
<%= class_name %>.create!(
|
1229
|
+
:code => "PL",
|
1230
|
+
:name => "Poland",
|
1231
|
+
:iso3 => "POL",
|
1232
|
+
:numeric => 616,
|
1233
|
+
:eu => true)
|
1234
|
+
|
1235
|
+
<%= class_name %>.create!(
|
1236
|
+
:code => "PT",
|
1237
|
+
:name => "Portugal",
|
1238
|
+
:iso3 => "PRT",
|
1239
|
+
:numeric => 620,
|
1240
|
+
:eu => true)
|
1241
|
+
|
1242
|
+
<%= class_name %>.create!(
|
1243
|
+
:code => "PR",
|
1244
|
+
:name => "Puerto Rico",
|
1245
|
+
:iso3 => "PRI",
|
1246
|
+
:numeric => 630,
|
1247
|
+
:eu => false)
|
1248
|
+
|
1249
|
+
<%= class_name %>.create!(
|
1250
|
+
:code => "QA",
|
1251
|
+
:name => "Qatar",
|
1252
|
+
:iso3 => "QAT",
|
1253
|
+
:numeric => 634,
|
1254
|
+
:eu => false)
|
1255
|
+
|
1256
|
+
<%= class_name %>.create!(
|
1257
|
+
:code => "RO",
|
1258
|
+
:name => "Romania",
|
1259
|
+
:iso3 => "ROU",
|
1260
|
+
:numeric => 642,
|
1261
|
+
:eu => true)
|
1262
|
+
|
1263
|
+
<%= class_name %>.create!(
|
1264
|
+
:code => "RU",
|
1265
|
+
:name => "Russian Federation",
|
1266
|
+
:iso3 => "RUS",
|
1267
|
+
:numeric => 643,
|
1268
|
+
:eu => false)
|
1269
|
+
|
1270
|
+
<%= class_name %>.create!(
|
1271
|
+
:code => "RW",
|
1272
|
+
:name => "Rwanda",
|
1273
|
+
:iso3 => "RWA",
|
1274
|
+
:numeric => 646,
|
1275
|
+
:eu => false)
|
1276
|
+
|
1277
|
+
<%= class_name %>.create!(
|
1278
|
+
:code => "RE",
|
1279
|
+
:name => "Réunion",
|
1280
|
+
:iso3 => "REU",
|
1281
|
+
:numeric => 638,
|
1282
|
+
:eu => false)
|
1283
|
+
|
1284
|
+
<%= class_name %>.create!(
|
1285
|
+
:code => "BL",
|
1286
|
+
:name => "Saint Barthélemy",
|
1287
|
+
:iso3 => "BLM",
|
1288
|
+
:numeric => 652,
|
1289
|
+
:eu => false)
|
1290
|
+
|
1291
|
+
<%= class_name %>.create!(
|
1292
|
+
:code => "SH",
|
1293
|
+
:name => "Saint Helena",
|
1294
|
+
:iso3 => "SHN",
|
1295
|
+
:numeric => 654,
|
1296
|
+
:eu => false)
|
1297
|
+
|
1298
|
+
<%= class_name %>.create!(
|
1299
|
+
:code => "KN",
|
1300
|
+
:name => "Saint Kitts and Nevis",
|
1301
|
+
:iso3 => "KNA",
|
1302
|
+
:numeric => 659,
|
1303
|
+
:eu => false)
|
1304
|
+
|
1305
|
+
<%= class_name %>.create!(
|
1306
|
+
:code => "LC",
|
1307
|
+
:name => "Saint Lucia",
|
1308
|
+
:iso3 => "LCA",
|
1309
|
+
:numeric => 662,
|
1310
|
+
:eu => false)
|
1311
|
+
|
1312
|
+
<%= class_name %>.create!(
|
1313
|
+
:code => "MF",
|
1314
|
+
:name => "Saint Martin",
|
1315
|
+
:iso3 => "MAF",
|
1316
|
+
:numeric => 663,
|
1317
|
+
:eu => false)
|
1318
|
+
|
1319
|
+
<%= class_name %>.create!(
|
1320
|
+
:code => "PM",
|
1321
|
+
:name => "Saint Pierre and Miquelon",
|
1322
|
+
:iso3 => "SPM",
|
1323
|
+
:numeric => 666,
|
1324
|
+
:eu => false)
|
1325
|
+
|
1326
|
+
<%= class_name %>.create!(
|
1327
|
+
:code => "VC",
|
1328
|
+
:name => "Saint Vincent and The Grenadines",
|
1329
|
+
:iso3 => "VCT",
|
1330
|
+
:numeric => 670,
|
1331
|
+
:eu => false)
|
1332
|
+
|
1333
|
+
<%= class_name %>.create!(
|
1334
|
+
:code => "WS",
|
1335
|
+
:name => "Samoa",
|
1336
|
+
:iso3 => "WSM",
|
1337
|
+
:numeric => 882,
|
1338
|
+
:eu => false)
|
1339
|
+
|
1340
|
+
<%= class_name %>.create!(
|
1341
|
+
:code => "SM",
|
1342
|
+
:name => "San Marino",
|
1343
|
+
:iso3 => "SMR",
|
1344
|
+
:numeric => 674,
|
1345
|
+
:eu => false)
|
1346
|
+
|
1347
|
+
<%= class_name %>.create!(
|
1348
|
+
:code => "ST",
|
1349
|
+
:name => "Sao Tome and Principe",
|
1350
|
+
:iso3 => "STP",
|
1351
|
+
:numeric => 678,
|
1352
|
+
:eu => false)
|
1353
|
+
|
1354
|
+
<%= class_name %>.create!(
|
1355
|
+
:code => "SA",
|
1356
|
+
:name => "Saudi Arabia",
|
1357
|
+
:iso3 => "SAU",
|
1358
|
+
:numeric => 682,
|
1359
|
+
:eu => false)
|
1360
|
+
|
1361
|
+
<%= class_name %>.create!(
|
1362
|
+
:code => "SN",
|
1363
|
+
:name => "Senegal",
|
1364
|
+
:iso3 => "SEN",
|
1365
|
+
:numeric => 686,
|
1366
|
+
:eu => false)
|
1367
|
+
|
1368
|
+
<%= class_name %>.create!(
|
1369
|
+
:code => "RS",
|
1370
|
+
:name => "Serbia",
|
1371
|
+
:iso3 => "SRB",
|
1372
|
+
:numeric => 688,
|
1373
|
+
:eu => false)
|
1374
|
+
|
1375
|
+
<%= class_name %>.create!(
|
1376
|
+
:code => "SC",
|
1377
|
+
:name => "Seychelles",
|
1378
|
+
:iso3 => "SYC",
|
1379
|
+
:numeric => 690,
|
1380
|
+
:eu => false)
|
1381
|
+
|
1382
|
+
<%= class_name %>.create!(
|
1383
|
+
:code => "SL",
|
1384
|
+
:name => "Sierra Leone",
|
1385
|
+
:iso3 => "SLE",
|
1386
|
+
:numeric => 694,
|
1387
|
+
:eu => false)
|
1388
|
+
|
1389
|
+
<%= class_name %>.create!(
|
1390
|
+
:code => "SG",
|
1391
|
+
:name => "Singapore",
|
1392
|
+
:iso3 => "SGP",
|
1393
|
+
:numeric => 702,
|
1394
|
+
:eu => false)
|
1395
|
+
|
1396
|
+
<%= class_name %>.create!(
|
1397
|
+
:code => "SK",
|
1398
|
+
:name => "Slovakia",
|
1399
|
+
:iso3 => "SVK",
|
1400
|
+
:numeric => 703,
|
1401
|
+
:eu => true)
|
1402
|
+
|
1403
|
+
<%= class_name %>.create!(
|
1404
|
+
:code => "SI",
|
1405
|
+
:name => "Slovenia",
|
1406
|
+
:iso3 => "SVN",
|
1407
|
+
:numeric => 705,
|
1408
|
+
:eu => true)
|
1409
|
+
|
1410
|
+
<%= class_name %>.create!(
|
1411
|
+
:code => "SB",
|
1412
|
+
:name => "Solomon Islands",
|
1413
|
+
:iso3 => "SLB",
|
1414
|
+
:numeric => 90,
|
1415
|
+
:eu => false)
|
1416
|
+
|
1417
|
+
<%= class_name %>.create!(
|
1418
|
+
:code => "SO",
|
1419
|
+
:name => "Somalia",
|
1420
|
+
:iso3 => "SOM",
|
1421
|
+
:numeric => 706,
|
1422
|
+
:eu => false)
|
1423
|
+
|
1424
|
+
<%= class_name %>.create!(
|
1425
|
+
:code => "ZA",
|
1426
|
+
:name => "South Africa",
|
1427
|
+
:iso3 => "ZAF",
|
1428
|
+
:numeric => 710,
|
1429
|
+
:eu => false)
|
1430
|
+
|
1431
|
+
<%= class_name %>.create!(
|
1432
|
+
:code => "GS",
|
1433
|
+
:name => "South Georgia and The South Sandwich Islands",
|
1434
|
+
:iso3 => "SGS",
|
1435
|
+
:numeric => 239,
|
1436
|
+
:eu => false)
|
1437
|
+
|
1438
|
+
<%= class_name %>.create!(
|
1439
|
+
:code => "ES",
|
1440
|
+
:name => "Spain",
|
1441
|
+
:iso3 => "ESP",
|
1442
|
+
:numeric => 724,
|
1443
|
+
:eu => true)
|
1444
|
+
|
1445
|
+
<%= class_name %>.create!(
|
1446
|
+
:code => "LK",
|
1447
|
+
:name => "Sri Lanka",
|
1448
|
+
:iso3 => "LKA",
|
1449
|
+
:numeric => 144,
|
1450
|
+
:eu => false)
|
1451
|
+
|
1452
|
+
<%= class_name %>.create!(
|
1453
|
+
:code => "SD",
|
1454
|
+
:name => "Sudan",
|
1455
|
+
:iso3 => "SDN",
|
1456
|
+
:numeric => 736,
|
1457
|
+
:eu => false)
|
1458
|
+
|
1459
|
+
<%= class_name %>.create!(
|
1460
|
+
:code => "SR",
|
1461
|
+
:name => "Suriname",
|
1462
|
+
:iso3 => "SUR",
|
1463
|
+
:numeric => 740,
|
1464
|
+
:eu => false)
|
1465
|
+
|
1466
|
+
<%= class_name %>.create!(
|
1467
|
+
:code => "SJ",
|
1468
|
+
:name => "Svalbard and Jan Mayen",
|
1469
|
+
:iso3 => "SJM",
|
1470
|
+
:numeric => 744,
|
1471
|
+
:eu => false)
|
1472
|
+
|
1473
|
+
<%= class_name %>.create!(
|
1474
|
+
:code => "SZ",
|
1475
|
+
:name => "Swaziland",
|
1476
|
+
:iso3 => "SWZ",
|
1477
|
+
:numeric => 748,
|
1478
|
+
:eu => false)
|
1479
|
+
|
1480
|
+
<%= class_name %>.create!(
|
1481
|
+
:code => "SE",
|
1482
|
+
:name => "Sweden",
|
1483
|
+
:iso3 => "SWE",
|
1484
|
+
:numeric => 752,
|
1485
|
+
:eu => true)
|
1486
|
+
|
1487
|
+
<%= class_name %>.create!(
|
1488
|
+
:code => "CH",
|
1489
|
+
:name => "Switzerland",
|
1490
|
+
:iso3 => "CHE",
|
1491
|
+
:numeric => 756,
|
1492
|
+
:eu => false)
|
1493
|
+
|
1494
|
+
<%= class_name %>.create!(
|
1495
|
+
:code => "SY",
|
1496
|
+
:name => "Syrian Arab Republic",
|
1497
|
+
:iso3 => "SYR",
|
1498
|
+
:numeric => 760,
|
1499
|
+
:eu => false)
|
1500
|
+
|
1501
|
+
<%= class_name %>.create!(
|
1502
|
+
:code => "TW",
|
1503
|
+
:name => "Taiwan, Province Of China",
|
1504
|
+
:iso3 => "TWN",
|
1505
|
+
:numeric => 158,
|
1506
|
+
:eu => false)
|
1507
|
+
|
1508
|
+
<%= class_name %>.create!(
|
1509
|
+
:code => "TJ",
|
1510
|
+
:name => "Tajikistan",
|
1511
|
+
:iso3 => "TJK",
|
1512
|
+
:numeric => 762,
|
1513
|
+
:eu => false)
|
1514
|
+
|
1515
|
+
<%= class_name %>.create!(
|
1516
|
+
:code => "TZ",
|
1517
|
+
:name => "Tanzania, United Republic Of",
|
1518
|
+
:iso3 => "TZA",
|
1519
|
+
:numeric => 834,
|
1520
|
+
:eu => false)
|
1521
|
+
|
1522
|
+
<%= class_name %>.create!(
|
1523
|
+
:code => "TH",
|
1524
|
+
:name => "Thailand",
|
1525
|
+
:iso3 => "THA",
|
1526
|
+
:numeric => 764,
|
1527
|
+
:eu => false)
|
1528
|
+
|
1529
|
+
<%= class_name %>.create!(
|
1530
|
+
:code => "TL",
|
1531
|
+
:name => "Timor-leste",
|
1532
|
+
:iso3 => "TLS",
|
1533
|
+
:numeric => 626,
|
1534
|
+
:eu => false)
|
1535
|
+
|
1536
|
+
<%= class_name %>.create!(
|
1537
|
+
:code => "TG",
|
1538
|
+
:name => "Togo",
|
1539
|
+
:iso3 => "TGO",
|
1540
|
+
:numeric => 768,
|
1541
|
+
:eu => false)
|
1542
|
+
|
1543
|
+
<%= class_name %>.create!(
|
1544
|
+
:code => "TK",
|
1545
|
+
:name => "Tokelau",
|
1546
|
+
:iso3 => "TKL",
|
1547
|
+
:numeric => 772,
|
1548
|
+
:eu => false)
|
1549
|
+
|
1550
|
+
<%= class_name %>.create!(
|
1551
|
+
:code => "TO",
|
1552
|
+
:name => "Tonga",
|
1553
|
+
:iso3 => "TON",
|
1554
|
+
:numeric => 776,
|
1555
|
+
:eu => false)
|
1556
|
+
|
1557
|
+
<%= class_name %>.create!(
|
1558
|
+
:code => "TT",
|
1559
|
+
:name => "Trinidad and Tobago",
|
1560
|
+
:iso3 => "TTO",
|
1561
|
+
:numeric => 780,
|
1562
|
+
:eu => false)
|
1563
|
+
|
1564
|
+
<%= class_name %>.create!(
|
1565
|
+
:code => "TN",
|
1566
|
+
:name => "Tunisia",
|
1567
|
+
:iso3 => "TUN",
|
1568
|
+
:numeric => 788,
|
1569
|
+
:eu => false)
|
1570
|
+
|
1571
|
+
<%= class_name %>.create!(
|
1572
|
+
:code => "TR",
|
1573
|
+
:name => "Turkey",
|
1574
|
+
:iso3 => "TUR",
|
1575
|
+
:numeric => 792,
|
1576
|
+
:eu => false)
|
1577
|
+
|
1578
|
+
<%= class_name %>.create!(
|
1579
|
+
:code => "TM",
|
1580
|
+
:name => "Turkmenistan",
|
1581
|
+
:iso3 => "TKM",
|
1582
|
+
:numeric => 795,
|
1583
|
+
:eu => false)
|
1584
|
+
|
1585
|
+
<%= class_name %>.create!(
|
1586
|
+
:code => "TC",
|
1587
|
+
:name => "Turks and Caicos Islands",
|
1588
|
+
:iso3 => "TCA",
|
1589
|
+
:numeric => 796,
|
1590
|
+
:eu => false)
|
1591
|
+
|
1592
|
+
<%= class_name %>.create!(
|
1593
|
+
:code => "TV",
|
1594
|
+
:name => "Tuvalu",
|
1595
|
+
:iso3 => "TUV",
|
1596
|
+
:numeric => 798,
|
1597
|
+
:eu => false)
|
1598
|
+
|
1599
|
+
<%= class_name %>.create!(
|
1600
|
+
:code => "UG",
|
1601
|
+
:name => "Uganda",
|
1602
|
+
:iso3 => "UGA",
|
1603
|
+
:numeric => 800,
|
1604
|
+
:eu => false)
|
1605
|
+
|
1606
|
+
<%= class_name %>.create!(
|
1607
|
+
:code => "UA",
|
1608
|
+
:name => "Ukraine",
|
1609
|
+
:iso3 => "UKR",
|
1610
|
+
:numeric => 804,
|
1611
|
+
:eu => false)
|
1612
|
+
|
1613
|
+
<%= class_name %>.create!(
|
1614
|
+
:code => "AE",
|
1615
|
+
:name => "United Arab Emirates",
|
1616
|
+
:iso3 => "ARE",
|
1617
|
+
:numeric => 784,
|
1618
|
+
:eu => false)
|
1619
|
+
|
1620
|
+
<%= class_name %>.create!(
|
1621
|
+
:code => "GB",
|
1622
|
+
:name => "United Kingdom",
|
1623
|
+
:iso3 => "GBR",
|
1624
|
+
:numeric => 826,
|
1625
|
+
:eu => true)
|
1626
|
+
|
1627
|
+
<%= class_name %>.create!(
|
1628
|
+
:code => "US",
|
1629
|
+
:name => "United States",
|
1630
|
+
:iso3 => "USA",
|
1631
|
+
:numeric => 840,
|
1632
|
+
:eu => false)
|
1633
|
+
|
1634
|
+
<%= class_name %>.create!(
|
1635
|
+
:code => "UM",
|
1636
|
+
:name => "United States Minor Outlying Islands",
|
1637
|
+
:iso3 => "UMI",
|
1638
|
+
:numeric => 581,
|
1639
|
+
:eu => false)
|
1640
|
+
|
1641
|
+
<%= class_name %>.create!(
|
1642
|
+
:code => "UY",
|
1643
|
+
:name => "Uruguay",
|
1644
|
+
:iso3 => "URY",
|
1645
|
+
:numeric => 858,
|
1646
|
+
:eu => false)
|
1647
|
+
|
1648
|
+
<%= class_name %>.create!(
|
1649
|
+
:code => "UZ",
|
1650
|
+
:name => "Uzbekistan",
|
1651
|
+
:iso3 => "UZB",
|
1652
|
+
:numeric => 860,
|
1653
|
+
:eu => false)
|
1654
|
+
|
1655
|
+
<%= class_name %>.create!(
|
1656
|
+
:code => "VU",
|
1657
|
+
:name => "Vanuatu",
|
1658
|
+
:iso3 => "VUT",
|
1659
|
+
:numeric => 548,
|
1660
|
+
:eu => false)
|
1661
|
+
|
1662
|
+
<%= class_name %>.create!(
|
1663
|
+
:code => "VA",
|
1664
|
+
:name => "Vatican City State",
|
1665
|
+
:iso3 => "VAT",
|
1666
|
+
:numeric => 336,
|
1667
|
+
:eu => false)
|
1668
|
+
|
1669
|
+
<%= class_name %>.create!(
|
1670
|
+
:code => "VE",
|
1671
|
+
:name => "Venezuela, Bolivarian Republic Of",
|
1672
|
+
:iso3 => "VEN",
|
1673
|
+
:numeric => 862,
|
1674
|
+
:eu => false)
|
1675
|
+
|
1676
|
+
<%= class_name %>.create!(
|
1677
|
+
:code => "VN",
|
1678
|
+
:name => "Vietnam",
|
1679
|
+
:iso3 => "VNM",
|
1680
|
+
:numeric => 704,
|
1681
|
+
:eu => false)
|
1682
|
+
|
1683
|
+
<%= class_name %>.create!(
|
1684
|
+
:code => "VG",
|
1685
|
+
:name => "Virgin Islands, British",
|
1686
|
+
:iso3 => "VGB",
|
1687
|
+
:numeric => 92,
|
1688
|
+
:eu => false)
|
1689
|
+
|
1690
|
+
<%= class_name %>.create!(
|
1691
|
+
:code => "VI",
|
1692
|
+
:name => "Virgin Islands, U.s.",
|
1693
|
+
:iso3 => "VIR",
|
1694
|
+
:numeric => 850,
|
1695
|
+
:eu => false)
|
1696
|
+
|
1697
|
+
<%= class_name %>.create!(
|
1698
|
+
:code => "WF",
|
1699
|
+
:name => "Wallis and Futuna",
|
1700
|
+
:iso3 => "WLF",
|
1701
|
+
:numeric => 876,
|
1702
|
+
:eu => false)
|
1703
|
+
|
1704
|
+
<%= class_name %>.create!(
|
1705
|
+
:code => "EH",
|
1706
|
+
:name => "Western Sahara",
|
1707
|
+
:iso3 => "ESH",
|
1708
|
+
:numeric => 732,
|
1709
|
+
:eu => false)
|
1710
|
+
|
1711
|
+
<%= class_name %>.create!(
|
1712
|
+
:code => "YE",
|
1713
|
+
:name => "Yemen",
|
1714
|
+
:iso3 => "YEM",
|
1715
|
+
:numeric => 887,
|
1716
|
+
:eu => false)
|
1717
|
+
|
1718
|
+
<%= class_name %>.create!(
|
1719
|
+
:code => "ZM",
|
1720
|
+
:name => "Zambia",
|
1721
|
+
:iso3 => "ZMB",
|
1722
|
+
:numeric => 894,
|
1723
|
+
:eu => false)
|
1724
|
+
|
1725
|
+
<%= class_name %>.create!(
|
1726
|
+
:code => "ZW",
|
1727
|
+
:name => "Zimbabwe",
|
1728
|
+
:iso3 => "ZWE",
|
1729
|
+
:numeric => 716,
|
1730
|
+
:eu => false)
|
1731
|
+
|
1732
|
+
<%= class_name %>.create!(
|
1733
|
+
:code => "AX",
|
1734
|
+
:name => "Åland Islands",
|
1735
|
+
:iso3 => "ALA",
|
1736
|
+
:numeric => 248,
|
1737
|
+
:eu => false)
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
def self.down
|
1741
|
+
drop_table :<%= table_name %>
|
1742
|
+
end
|
1743
|
+
end
|