spree_br_common 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +1 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +14 -0
  7. data/Gemfile +20 -0
  8. data/LICENSE +26 -0
  9. data/README.md +55 -0
  10. data/Rakefile +21 -0
  11. data/app/assets/javascripts/spree/backend/spree_br_common.js +2 -0
  12. data/app/assets/javascripts/spree/frontend/address.js +119 -0
  13. data/app/assets/javascripts/spree/frontend/mask.js +21 -0
  14. data/app/assets/javascripts/spree/frontend/plugins/jquery.mask.extension.js +4 -0
  15. data/app/assets/javascripts/spree/frontend/plugins/jquery.mask.js +395 -0
  16. data/app/assets/javascripts/spree/frontend/routes.js.erb +4 -0
  17. data/app/assets/javascripts/spree/frontend/spree_br_common.js +1 -0
  18. data/app/assets/stylesheets/spree/backend/spree_br_common.css +4 -0
  19. data/app/assets/stylesheets/spree/frontend/spree_br_common.css +4 -0
  20. data/app/controllers/spree/addresses_controller.rb +24 -0
  21. data/app/controllers/spree/api/cities_controller.rb +38 -0
  22. data/app/controllers/spree/user_registrations_controller_decorator.rb +13 -0
  23. data/app/helpers/spree/api/api_helpers_decorator.rb +13 -0
  24. data/app/helpers/spree/base_helper_decorator.rb +5 -0
  25. data/app/models/spree/ability_decorator.rb +21 -0
  26. data/app/models/spree/address_decorator.rb +6 -0
  27. data/app/models/spree/city.rb +7 -0
  28. data/app/models/spree/permitted_attributes_decorator.rb +8 -0
  29. data/app/models/spree/state_decorator.rb +3 -0
  30. data/app/models/spree/user_decorator.rb +52 -0
  31. data/app/overrides/spree/address/_form/add_district.html.erb.deface +5 -0
  32. data/app/overrides/spree/address/_form/add_number.html.erb.deface +5 -0
  33. data/app/overrides/spree/address/_form/hide_country.html.erb.deface +4 -0
  34. data/app/overrides/spree/address/_form/move_city_to_after_state.deface +2 -0
  35. data/app/overrides/spree/address/_form/move_zipcode_after_last_name.deface +2 -0
  36. data/app/overrides/spree/address/_form/replace_city_input_text_by_select.html.erb.deface +18 -0
  37. data/app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface +15 -0
  38. data/app/overrides/spree/admin/users/_form/add_extras_fields.html.erb.deface +39 -0
  39. data/app/overrides/spree/shared/_user_form/add_extra_fields.html.erb.deface +19 -0
  40. data/app/overrides/spree/users/show/add_details.html.erb.deface +13 -0
  41. data/app/views/spree/api/cities/index.v1.rabl +11 -0
  42. data/app/views/spree/api/cities/show.v1.rabl +2 -0
  43. data/bin/rails +7 -0
  44. data/config/locales/en.yml +11 -0
  45. data/config/locales/pt-BR.yml +14 -0
  46. data/config/routes.rb +7 -0
  47. data/db/default/country.rb +3 -0
  48. data/db/default/shipping_categories.rb +1 -0
  49. data/db/default/shipping_zones.rb +3 -0
  50. data/db/default/states.rb +31 -0
  51. data/db/default/states_cities_of_acre.rb +26 -0
  52. data/db/default/states_cities_of_alagoas.rb +107 -0
  53. data/db/default/states_cities_of_amapa.rb +20 -0
  54. data/db/default/states_cities_of_amazonas.rb +67 -0
  55. data/db/default/states_cities_of_bahia.rb +421 -0
  56. data/db/default/states_cities_of_ceara.rb +188 -0
  57. data/db/default/states_cities_of_distrito_federal.rb +5 -0
  58. data/db/default/states_cities_of_espirito_santo.rb +82 -0
  59. data/db/default/states_cities_of_goias.rb +250 -0
  60. data/db/default/states_cities_of_maranhao.rb +221 -0
  61. data/db/default/states_cities_of_mato_grosso.rb +145 -0
  62. data/db/default/states_cities_of_mato_grosso_do_sul.rb +82 -0
  63. data/db/default/states_cities_of_minas_gerais.rb +857 -0
  64. data/db/default/states_cities_of_para.rb +147 -0
  65. data/db/default/states_cities_of_paraiba.rb +227 -0
  66. data/db/default/states_cities_of_parana.rb +403 -0
  67. data/db/default/states_cities_of_pernambuco.rb +189 -0
  68. data/db/default/states_cities_of_piaui.rb +227 -0
  69. data/db/default/states_cities_of_rio_de_janeiro.rb +96 -0
  70. data/db/default/states_cities_of_rio_grande_do_norte.rb +171 -0
  71. data/db/default/states_cities_of_rio_grande_do_sul.rb +500 -0
  72. data/db/default/states_cities_of_rondonia.rb +56 -0
  73. data/db/default/states_cities_of_roraima.rb +19 -0
  74. data/db/default/states_cities_of_santa_catarina.rb +297 -0
  75. data/db/default/states_cities_of_sao_paulo.rb +649 -0
  76. data/db/default/states_cities_of_sergipe.rb +79 -0
  77. data/db/default/states_cities_of_tocantins.rb +144 -0
  78. data/db/default/stock.rb +1 -0
  79. data/db/default/tax_categories.rb +1 -0
  80. data/db/default/user.rb +100 -0
  81. data/db/migrate/20150503011715_create_spree_cities.rb +13 -0
  82. data/db/migrate/20150504004509_remove_city_from_spree_address.rb +5 -0
  83. data/db/migrate/20150504004648_add_city_to_spree_address.rb +5 -0
  84. data/db/migrate/20150505020218_add_number_and_district_to_spree_address.rb +6 -0
  85. data/db/migrate/20150505031019_add_details_to_spree_user.rb +10 -0
  86. data/db/seeds.rb +5 -0
  87. data/lib/generators/spree_br_common/install/install_generator.rb +31 -0
  88. data/lib/spree_br_common/engine.rb +20 -0
  89. data/lib/spree_br_common/factories/address_factory.rb +7 -0
  90. data/lib/spree_br_common/factories/city_factory.rb +8 -0
  91. data/lib/spree_br_common/factories/user_factory.rb +12 -0
  92. data/lib/spree_br_common/factories.rb +3 -0
  93. data/lib/spree_br_common.rb +2 -0
  94. data/spec/controllers/features/address_checkout_spec.rb +89 -0
  95. data/spec/controllers/features/user_account_spec.rb +46 -0
  96. data/spec/controllers/features/user_signup_spec.rb +24 -0
  97. data/spec/controllers/spree/addresses_controller_spec.rb +27 -0
  98. data/spec/controllers/spree/api/cities_controller_spec.rb +86 -0
  99. data/spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/does_not_break_the_per-item_shipping_method_calculator.yml +49 -0
  100. data/spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/in_Brazil/should_autocomplete_zipcode.yml +46 -0
  101. data/spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/does_not_find_an_incorrect_cep.yml +38 -0
  102. data/spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/shows_the_correct_address.yml +46 -0
  103. data/spec/models/spree/address_spec.rb +32 -0
  104. data/spec/models/spree/city_spec.rb +7 -0
  105. data/spec/models/spree/user_spec.rb +88 -0
  106. data/spec/spec_helper.rb +94 -0
  107. data/spec/support/controller_hacks.rb +33 -0
  108. data/spec/support/shared_context/checkout_setup.rb +9 -0
  109. data/spec/support/vcr.rb +8 -0
  110. data/spree_br_common.gemspec +33 -0
  111. metadata +351 -0
@@ -0,0 +1,421 @@
1
+ bahia = Spree::State.find_by! abbr: 'BA'
2
+
3
+ Spree::City.create!([
4
+ {state: bahia, ibge_code: 2903003, name: "Barra do Mendes"},
5
+ {state: bahia, ibge_code: 2901502, name: "Anguera"},
6
+ {state: bahia, ibge_code: 2925907, name: "Quijingue"},
7
+ {state: bahia, ibge_code: 2926301, name: "Riachão do Jacuípe"},
8
+ {state: bahia, ibge_code: 2927309, name: "Salinas da Margarida"},
9
+ {state: bahia, ibge_code: 2916708, name: "Itaquara"},
10
+ {state: bahia, ibge_code: 2930006, name: "Sebastião Laranjeiras"},
11
+ {state: bahia, ibge_code: 2903102, name: "Barra do Rocha"},
12
+ {state: bahia, ibge_code: 2918902, name: "Lajedão"},
13
+ {state: bahia, ibge_code: 2933257, name: "Vereda"},
14
+ {state: bahia, ibge_code: 2905909, name: "Campo Alegre de Lourdes"},
15
+ {state: bahia, ibge_code: 2930758, name: "Sítio do Mato"},
16
+ {state: bahia, ibge_code: 2914604, name: "Irecê"},
17
+ {state: bahia, ibge_code: 2921708, name: "Morro do Chapéu"},
18
+ {state: bahia, ibge_code: 2931301, name: "Tapiramutá"},
19
+ {state: bahia, ibge_code: 2927507, name: "Santa Bárbara"},
20
+ {state: bahia, ibge_code: 2931905, name: "Tucano"},
21
+ {state: bahia, ibge_code: 2902104, name: "Araci"},
22
+ {state: bahia, ibge_code: 2903607, name: "Biritinga"},
23
+ {state: bahia, ibge_code: 2931509, name: "Teofilândia"},
24
+ {state: bahia, ibge_code: 2910602, name: "Esplanada"},
25
+ {state: bahia, ibge_code: 2909802, name: "Cruz das Almas"},
26
+ {state: bahia, ibge_code: 2916104, name: "Itaparica"},
27
+ {state: bahia, ibge_code: 2931053, name: "Tanque Novo"},
28
+ {state: bahia, ibge_code: 2900603, name: "Aiquara"},
29
+ {state: bahia, ibge_code: 2919058, name: "Lajedo do Tabocal"},
30
+ {state: bahia, ibge_code: 2919405, name: "Licínio de Almeida"},
31
+ {state: bahia, ibge_code: 2901205, name: "Anagé"},
32
+ {state: bahia, ibge_code: 2925006, name: "Planalto"},
33
+ {state: bahia, ibge_code: 2920700, name: "Maraú"},
34
+ {state: bahia, ibge_code: 2908002, name: "Coaraci"},
35
+ {state: bahia, ibge_code: 2916302, name: "Itapebi"},
36
+ {state: bahia, ibge_code: 2906907, name: "Caravelas"},
37
+ {state: bahia, ibge_code: 2911808, name: "Guaratinga"},
38
+ {state: bahia, ibge_code: 2914653, name: "Itabela"},
39
+ {state: bahia, ibge_code: 2915304, name: "Itagimirim"},
40
+ {state: bahia, ibge_code: 2915601, name: "Itamaraju"},
41
+ {state: bahia, ibge_code: 2918456, name: "Jucuruçu"},
42
+ {state: bahia, ibge_code: 2921104, name: "Medeiros Neto"},
43
+ {state: bahia, ibge_code: 2922003, name: "Mucuri"},
44
+ {state: bahia, ibge_code: 2923001, name: "Nova Viçosa"},
45
+ {state: bahia, ibge_code: 2925303, name: "Porto Seguro"},
46
+ {state: bahia, ibge_code: 2925501, name: "Prado"},
47
+ {state: bahia, ibge_code: 2927705, name: "Santa Cruz Cabrália"},
48
+ {state: bahia, ibge_code: 2931350, name: "Teixeira de Freitas"},
49
+ {state: bahia, ibge_code: 2903201, name: "Barreiras"},
50
+ {state: bahia, ibge_code: 2926202, name: "Riachão das Neves"},
51
+ {state: bahia, ibge_code: 2909703, name: "Cristópolis"},
52
+ {state: bahia, ibge_code: 2906105, name: "Canápolis"},
53
+ {state: bahia, ibge_code: 2917359, name: "Jaborandi"},
54
+ {state: bahia, ibge_code: 2930303, name: "Serra Dourada"},
55
+ {state: bahia, ibge_code: 2924405, name: "Pilão Arcado"},
56
+ {state: bahia, ibge_code: 2907707, name: "Chorrochó"},
57
+ {state: bahia, ibge_code: 2927101, name: "Rodelas"},
58
+ {state: bahia, ibge_code: 2915353, name: "Itaguaçu da Bahia"},
59
+ {state: bahia, ibge_code: 2910776, name: "Feira da Mata"},
60
+ {state: bahia, ibge_code: 2901353, name: "Andorinha"},
61
+ {state: bahia, ibge_code: 2917706, name: "Jaguarari"},
62
+ {state: bahia, ibge_code: 2901155, name: "América Dourada"},
63
+ {state: bahia, ibge_code: 2907608, name: "Central"},
64
+ {state: bahia, ibge_code: 2914406, name: "Iraquara"},
65
+ {state: bahia, ibge_code: 2919157, name: "Lapão"},
66
+ {state: bahia, ibge_code: 2930808, name: "Souto Soares"},
67
+ {state: bahia, ibge_code: 2906873, name: "Capim Grosso"},
68
+ {state: bahia, ibge_code: 2923357, name: "Ourolândia"},
69
+ {state: bahia, ibge_code: 2929370, name: "São José do Jacuípe"},
70
+ {state: bahia, ibge_code: 2903805, name: "Boa Vista do Tupim"},
71
+ {state: bahia, ibge_code: 2920106, name: "Mairi"},
72
+ {state: bahia, ibge_code: 2933059, name: "Várzea da Roça"},
73
+ {state: bahia, ibge_code: 2908507, name: "Conceição do Jacuípe"},
74
+ {state: bahia, ibge_code: 2914505, name: "Irará"},
75
+ {state: bahia, ibge_code: 2924652, name: "Pintadas"},
76
+ {state: bahia, ibge_code: 2928505, name: "Santa Teresinha"},
77
+ {state: bahia, ibge_code: 2931400, name: "Teodoro Sampaio"},
78
+ {state: bahia, ibge_code: 2930766, name: "Sítio do Quinto"},
79
+ {state: bahia, ibge_code: 2925808, name: "Queimadas"},
80
+ {state: bahia, ibge_code: 2900355, name: "Adustina"},
81
+ {state: bahia, ibge_code: 2907905, name: "Cipó"},
82
+ {state: bahia, ibge_code: 2916500, name: "Itapicuru"},
83
+ {state: bahia, ibge_code: 2926509, name: "Ribeira do Amparo"},
84
+ {state: bahia, ibge_code: 2928604, name: "Santo Amaro"},
85
+ {state: bahia, ibge_code: 2929750, name: "Saubara"},
86
+ {state: bahia, ibge_code: 2906501, name: "Candeias"},
87
+ {state: bahia, ibge_code: 2919926, name: "Madre de Deus"},
88
+ {state: bahia, ibge_code: 2904100, name: "Boquira"},
89
+ {state: bahia, ibge_code: 2912509, name: "Ibipitanga"},
90
+ {state: bahia, ibge_code: 2923035, name: "Novo Horizonte"},
91
+ {state: bahia, ibge_code: 2902807, name: "Barra da Estiva"},
92
+ {state: bahia, ibge_code: 2918605, name: "Jussiape"},
93
+ {state: bahia, ibge_code: 2923506, name: "Palmeiras"},
94
+ {state: bahia, ibge_code: 2932804, name: "Utinga"},
95
+ {state: bahia, ibge_code: 2901007, name: "Amargosa"},
96
+ {state: bahia, ibge_code: 2914208, name: "Irajuba"},
97
+ {state: bahia, ibge_code: 2916906, name: "Itiruçu"},
98
+ {state: bahia, ibge_code: 2918308, name: "Jitaúna"},
99
+ {state: bahia, ibge_code: 2920502, name: "Maracás"},
100
+ {state: bahia, ibge_code: 2919553, name: "Luís Eduardo Magalhães"},
101
+ {state: bahia, ibge_code: 2906899, name: "Caraíbas"},
102
+ {state: bahia, ibge_code: 2908705, name: "Condeúba"},
103
+ {state: bahia, ibge_code: 2909000, name: "Cordeiros"},
104
+ {state: bahia, ibge_code: 2917201, name: "Ituaçu"},
105
+ {state: bahia, ibge_code: 2919959, name: "Maetinga"},
106
+ {state: bahia, ibge_code: 2920304, name: "Malhada de Pedras"},
107
+ {state: bahia, ibge_code: 2925709, name: "Presidente Jânio Quadros"},
108
+ {state: bahia, ibge_code: 2926806, name: "Rio do Antônio"},
109
+ {state: bahia, ibge_code: 2931806, name: "Tremedal"},
110
+ {state: bahia, ibge_code: 2902906, name: "Barra do Choça"},
111
+ {state: bahia, ibge_code: 2903706, name: "Boa Nova"},
112
+ {state: bahia, ibge_code: 2903953, name: "Bom Jesus da Serra"},
113
+ {state: bahia, ibge_code: 2904803, name: "Caatiba"},
114
+ {state: bahia, ibge_code: 2905156, name: "Caetanos"},
115
+ {state: bahia, ibge_code: 2910008, name: "Dário Meira"},
116
+ {state: bahia, ibge_code: 2912301, name: "Ibicuí"},
117
+ {state: bahia, ibge_code: 2913507, name: "Iguaí"},
118
+ {state: bahia, ibge_code: 2921450, name: "Mirante"},
119
+ {state: bahia, ibge_code: 2922706, name: "Nova Canaã"},
120
+ {state: bahia, ibge_code: 2925105, name: "Poções"},
121
+ {state: bahia, ibge_code: 2933307, name: "Vitória da Conquista"},
122
+ {state: bahia, ibge_code: 2915809, name: "Itambé"},
123
+ {state: bahia, ibge_code: 2916401, name: "Itapetinga"},
124
+ {state: bahia, ibge_code: 2916807, name: "Itarantim"},
125
+ {state: bahia, ibge_code: 2919702, name: "Macarani"},
126
+ {state: bahia, ibge_code: 2920007, name: "Maiquinique"},
127
+ {state: bahia, ibge_code: 2925402, name: "Potiraguá"},
128
+ {state: bahia, ibge_code: 2905404, name: "Cairu"},
129
+ {state: bahia, ibge_code: 2905800, name: "Camamu"},
130
+ {state: bahia, ibge_code: 2913457, name: "Igrapiúna"},
131
+ {state: bahia, ibge_code: 2917300, name: "Ituberá"},
132
+ {state: bahia, ibge_code: 2924678, name: "Piraí do Norte"},
133
+ {state: bahia, ibge_code: 2925758, name: "Presidente Tancredo Neves"},
134
+ {state: bahia, ibge_code: 2931202, name: "Taperoá"},
135
+ {state: bahia, ibge_code: 2932903, name: "Valença"},
136
+ {state: bahia, ibge_code: 2902252, name: "Arataca"},
137
+ {state: bahia, ibge_code: 2902401, name: "Aurelino Leal"},
138
+ {state: bahia, ibge_code: 2903409, name: "Belmonte"},
139
+ {state: bahia, ibge_code: 2904704, name: "Buerarema"},
140
+ {state: bahia, ibge_code: 2905602, name: "Camacan"},
141
+ {state: bahia, ibge_code: 2910909, name: "Firmino Alves"},
142
+ {state: bahia, ibge_code: 2911006, name: "Floresta Azul"},
143
+ {state: bahia, ibge_code: 2911204, name: "Gandu"},
144
+ {state: bahia, ibge_code: 2912103, name: "Ibicaraí"},
145
+ {state: bahia, ibge_code: 2912707, name: "Ibirapitanga"},
146
+ {state: bahia, ibge_code: 2912905, name: "Ibirataia"},
147
+ {state: bahia, ibge_code: 2913903, name: "Ipiaú"},
148
+ {state: bahia, ibge_code: 2914802, name: "Itabuna"},
149
+ {state: bahia, ibge_code: 2915205, name: "Itagibá"},
150
+ {state: bahia, ibge_code: 2915403, name: "Itaju do Colônia"},
151
+ {state: bahia, ibge_code: 2915502, name: "Itajuípe"},
152
+ {state: bahia, ibge_code: 2916203, name: "Itapé"},
153
+ {state: bahia, ibge_code: 2916609, name: "Itapitanga"},
154
+ {state: bahia, ibge_code: 2920908, name: "Mascote"},
155
+ {state: bahia, ibge_code: 2922755, name: "Nova Ibiá"},
156
+ {state: bahia, ibge_code: 2923902, name: "Pau Brasil"},
157
+ {state: bahia, ibge_code: 2928059, name: "Santa Luzia"},
158
+ {state: bahia, ibge_code: 2929354, name: "São José da Vitória"},
159
+ {state: bahia, ibge_code: 2931608, name: "Teolândia"},
160
+ {state: bahia, ibge_code: 2932200, name: "Ubaitaba"},
161
+ {state: bahia, ibge_code: 2932309, name: "Ubatã"},
162
+ {state: bahia, ibge_code: 2932705, name: "Uruçuca"},
163
+ {state: bahia, ibge_code: 2933505, name: "Wenceslau Guimarães"},
164
+ {state: bahia, ibge_code: 2910727, name: "Eunápolis"},
165
+ {state: bahia, ibge_code: 2929602, name: "Sapeaçu"},
166
+ {state: bahia, ibge_code: 2933174, name: "Varzedo"},
167
+ {state: bahia, ibge_code: 2905701, name: "Camaçari"},
168
+ {state: bahia, ibge_code: 2910057, name: "Dias d'Ávila"},
169
+ {state: bahia, ibge_code: 2919207, name: "Lauro de Freitas"},
170
+ {state: bahia, ibge_code: 2927408, name: "Salvador"},
171
+ {state: bahia, ibge_code: 2929206, name: "São Francisco do Conde"},
172
+ {state: bahia, ibge_code: 2930709, name: "Simões Filho"},
173
+ {state: bahia, ibge_code: 2933208, name: "Vera Cruz"},
174
+ {state: bahia, ibge_code: 2904209, name: "Botuporã"},
175
+ {state: bahia, ibge_code: 2904506, name: "Brotas de Macaúbas"},
176
+ {state: bahia, ibge_code: 2907558, name: "Caturama"},
177
+ {state: bahia, ibge_code: 2913002, name: "Ibitiara"},
178
+ {state: bahia, ibge_code: 2914109, name: "Ipupiara"},
179
+ {state: bahia, ibge_code: 2919801, name: "Macaúbas"},
180
+ {state: bahia, ibge_code: 2923209, name: "Oliveira dos Brejinhos"},
181
+ {state: bahia, ibge_code: 2900108, name: "Abaíra"},
182
+ {state: bahia, ibge_code: 2901304, name: "Andaraí"},
183
+ {state: bahia, ibge_code: 2904001, name: "Boninal"},
184
+ {state: bahia, ibge_code: 2904050, name: "Bonito"},
185
+ {state: bahia, ibge_code: 2908804, name: "Contendas do Sincorá"},
186
+ {state: bahia, ibge_code: 2912202, name: "Ibicoara"},
187
+ {state: bahia, ibge_code: 2915007, name: "Itaeté"},
188
+ {state: bahia, ibge_code: 2919306, name: "Lençóis"},
189
+ {state: bahia, ibge_code: 2921906, name: "Mucugê"},
190
+ {state: bahia, ibge_code: 2922854, name: "Nova Redenção"},
191
+ {state: bahia, ibge_code: 2924306, name: "Piatã"},
192
+ {state: bahia, ibge_code: 2926707, name: "Rio de Contas"},
193
+ {state: bahia, ibge_code: 2929909, name: "Seabra"},
194
+ {state: bahia, ibge_code: 2933406, name: "Wagner"},
195
+ {state: bahia, ibge_code: 2901957, name: "Apuarema"},
196
+ {state: bahia, ibge_code: 2904308, name: "Brejões"},
197
+ {state: bahia, ibge_code: 2909505, name: "Cravolândia"},
198
+ {state: bahia, ibge_code: 2914307, name: "Iramaia"},
199
+ {state: bahia, ibge_code: 2915106, name: "Itagi"},
200
+ {state: bahia, ibge_code: 2917607, name: "Jaguaquara"},
201
+ {state: bahia, ibge_code: 2918001, name: "Jequié"},
202
+ {state: bahia, ibge_code: 2918209, name: "Jiquiriçá"},
203
+ {state: bahia, ibge_code: 2918704, name: "Lafaiete Coutinho"},
204
+ {state: bahia, ibge_code: 2918803, name: "Laje"},
205
+ {state: bahia, ibge_code: 2920809, name: "Marcionílio Souza"},
206
+ {state: bahia, ibge_code: 2921302, name: "Milagres"},
207
+ {state: bahia, ibge_code: 2922409, name: "Mutuípe"},
208
+ {state: bahia, ibge_code: 2924900, name: "Planaltino"},
209
+ {state: bahia, ibge_code: 2927903, name: "Santa Inês"},
210
+ {state: bahia, ibge_code: 2929404, name: "São Miguel das Matas"},
211
+ {state: bahia, ibge_code: 2932101, name: "Ubaíra"},
212
+ {state: bahia, ibge_code: 2910107, name: "Dom Basílio"},
213
+ {state: bahia, ibge_code: 2919504, name: "Livramento de Nossa Senhora"},
214
+ {state: bahia, ibge_code: 2923605, name: "Paramirim"},
215
+ {state: bahia, ibge_code: 2905008, name: "Caculé"},
216
+ {state: bahia, ibge_code: 2905206, name: "Caetité"},
217
+ {state: bahia, ibge_code: 2906600, name: "Candiba"},
218
+ {state: bahia, ibge_code: 2911709, name: "Guanambi"},
219
+ {state: bahia, ibge_code: 2913408, name: "Igaporã"},
220
+ {state: bahia, ibge_code: 2917334, name: "Iuiú"},
221
+ {state: bahia, ibge_code: 2917409, name: "Jacaraci"},
222
+ {state: bahia, ibge_code: 2920205, name: "Malhada"},
223
+ {state: bahia, ibge_code: 2921054, name: "Matina"},
224
+ {state: bahia, ibge_code: 2921807, name: "Mortugaba"},
225
+ {state: bahia, ibge_code: 2924504, name: "Pindaí"},
226
+ {state: bahia, ibge_code: 2926400, name: "Riacho de Santana"},
227
+ {state: bahia, ibge_code: 2932606, name: "Urandi"},
228
+ {state: bahia, ibge_code: 2902005, name: "Aracatu"},
229
+ {state: bahia, ibge_code: 2906824, name: "Canudos"},
230
+ {state: bahia, ibge_code: 2910701, name: "Euclides da Cunha"},
231
+ {state: bahia, ibge_code: 2921500, name: "Monte Santo"},
232
+ {state: bahia, ibge_code: 2922656, name: "Nordestina"},
233
+ {state: bahia, ibge_code: 2932002, name: "Uauá"},
234
+ {state: bahia, ibge_code: 2901601, name: "Antas"},
235
+ {state: bahia, ibge_code: 2902658, name: "Banzaê"},
236
+ {state: bahia, ibge_code: 2907806, name: "Cícero Dantas"},
237
+ {state: bahia, ibge_code: 2910750, name: "Fátima"},
238
+ {state: bahia, ibge_code: 2911857, name: "Heliópolis"},
239
+ {state: bahia, ibge_code: 2922904, name: "Nova Soure"},
240
+ {state: bahia, ibge_code: 2923050, name: "Novo Triunfo"},
241
+ {state: bahia, ibge_code: 2923100, name: "Olindina"},
242
+ {state: bahia, ibge_code: 2923803, name: "Paripiranga"},
243
+ {state: bahia, ibge_code: 2926608, name: "Ribeira do Pombal"},
244
+ {state: bahia, ibge_code: 2903276, name: "Barrocas"},
245
+ {state: bahia, ibge_code: 2906402, name: "Candeal"},
246
+ {state: bahia, ibge_code: 2906857, name: "Capela do Alto Alegre"},
247
+ {state: bahia, ibge_code: 2908408, name: "Conceição do Coité"},
248
+ {state: bahia, ibge_code: 2911253, name: "Gavião"},
249
+ {state: bahia, ibge_code: 2913309, name: "Ichu"},
250
+ {state: bahia, ibge_code: 2919108, name: "Lamarão"},
251
+ {state: bahia, ibge_code: 2922730, name: "Nova Fátima"},
252
+ {state: bahia, ibge_code: 2924058, name: "Pé de Serra"},
253
+ {state: bahia, ibge_code: 2926103, name: "Retirolândia"},
254
+ {state: bahia, ibge_code: 2928000, name: "Santaluz"},
255
+ {state: bahia, ibge_code: 2928950, name: "São Domingos"},
256
+ {state: bahia, ibge_code: 2930501, name: "Serrinha"},
257
+ {state: bahia, ibge_code: 2933000, name: "Valente"},
258
+ {state: bahia, ibge_code: 2900306, name: "Acajutiba"},
259
+ {state: bahia, ibge_code: 2900702, name: "Alagoinhas"},
260
+ {state: bahia, ibge_code: 2901908, name: "Aporá"},
261
+ {state: bahia, ibge_code: 2902054, name: "Araças"},
262
+ {state: bahia, ibge_code: 2902203, name: "Aramari"},
263
+ {state: bahia, ibge_code: 2909604, name: "Crisópolis"},
264
+ {state: bahia, ibge_code: 2913705, name: "Inhambupe"},
265
+ {state: bahia, ibge_code: 2927002, name: "Rio Real"},
266
+ {state: bahia, ibge_code: 2929701, name: "Sátiro Dias"},
267
+ {state: bahia, ibge_code: 2907004, name: "Cardeal da Silva"},
268
+ {state: bahia, ibge_code: 2908606, name: "Conde"},
269
+ {state: bahia, ibge_code: 2910503, name: "Entre Rios"},
270
+ {state: bahia, ibge_code: 2917904, name: "Jandaíra"},
271
+ {state: bahia, ibge_code: 2901106, name: "Amélia Rodrigues"},
272
+ {state: bahia, ibge_code: 2907509, name: "Catu"},
273
+ {state: bahia, ibge_code: 2915908, name: "Itanagra"},
274
+ {state: bahia, ibge_code: 2921005, name: "Mata de São João"},
275
+ {state: bahia, ibge_code: 2925204, name: "Pojuca"},
276
+ {state: bahia, ibge_code: 2929503, name: "São Sebastião do Passé"},
277
+ {state: bahia, ibge_code: 2931707, name: "Terra Nova"},
278
+ {state: bahia, ibge_code: 2902302, name: "Aratuípe"},
279
+ {state: bahia, ibge_code: 2904852, name: "Cabaceiras do Paraguaçu"},
280
+ {state: bahia, ibge_code: 2904902, name: "Cachoeira"},
281
+ {state: bahia, ibge_code: 2907301, name: "Castro Alves"},
282
+ {state: bahia, ibge_code: 2908309, name: "Conceição do Almeida"},
283
+ {state: bahia, ibge_code: 2910206, name: "Dom Macedo Costa"},
284
+ {state: bahia, ibge_code: 2911600, name: "Governador Mangabeira"},
285
+ {state: bahia, ibge_code: 2917805, name: "Jaguaripe"},
286
+ {state: bahia, ibge_code: 2920601, name: "Maragogipe"},
287
+ {state: bahia, ibge_code: 2922201, name: "Muniz Ferreira"},
288
+ {state: bahia, ibge_code: 2922300, name: "Muritiba"},
289
+ {state: bahia, ibge_code: 2922508, name: "Nazaré"},
290
+ {state: bahia, ibge_code: 2928703, name: "Santo Antônio de Jesus"},
291
+ {state: bahia, ibge_code: 2929008, name: "São Félix"},
292
+ {state: bahia, ibge_code: 2929107, name: "São Felipe"},
293
+ {state: bahia, ibge_code: 2907103, name: "Carinhanha"},
294
+ {state: bahia, ibge_code: 2923704, name: "Paratinga"},
295
+ {state: bahia, ibge_code: 2930154, name: "Serra do Ramalho"},
296
+ {state: bahia, ibge_code: 2901809, name: "Antônio Gonçalves"},
297
+ {state: bahia, ibge_code: 2906006, name: "Campo Formoso"},
298
+ {state: bahia, ibge_code: 2910859, name: "Filadélfia"},
299
+ {state: bahia, ibge_code: 2917003, name: "Itiúba"},
300
+ {state: bahia, ibge_code: 2924603, name: "Pindobaçu"},
301
+ {state: bahia, ibge_code: 2930105, name: "Senhor do Bonfim"},
302
+ {state: bahia, ibge_code: 2932457, name: "Umburanas"},
303
+ {state: bahia, ibge_code: 2903235, name: "Barro Alto"},
304
+ {state: bahia, ibge_code: 2905305, name: "Cafarnaum"},
305
+ {state: bahia, ibge_code: 2906204, name: "Canarana"},
306
+ {state: bahia, ibge_code: 2911303, name: "Gentio do Ouro"},
307
+ {state: bahia, ibge_code: 2912400, name: "Ibipeba"},
308
+ {state: bahia, ibge_code: 2913101, name: "Ibititá"},
309
+ {state: bahia, ibge_code: 2918357, name: "João Dourado"},
310
+ {state: bahia, ibge_code: 2918506, name: "Jussara"},
311
+ {state: bahia, ibge_code: 2922052, name: "Mulungu do Morro"},
312
+ {state: bahia, ibge_code: 2925600, name: "Presidente Dutra"},
313
+ {state: bahia, ibge_code: 2929255, name: "São Gabriel"},
314
+ {state: bahia, ibge_code: 2932408, name: "Uibaí"},
315
+ {state: bahia, ibge_code: 2905107, name: "Caém"},
316
+ {state: bahia, ibge_code: 2905503, name: "Caldeirão Grande"},
317
+ {state: bahia, ibge_code: 2917508, name: "Jacobina"},
318
+ {state: bahia, ibge_code: 2921203, name: "Miguel Calmon"},
319
+ {state: bahia, ibge_code: 2921401, name: "Mirangaba"},
320
+ {state: bahia, ibge_code: 2924801, name: "Piritiba"},
321
+ {state: bahia, ibge_code: 2925253, name: "Ponto Novo"},
322
+ {state: bahia, ibge_code: 2925931, name: "Quixabeira"},
323
+ {state: bahia, ibge_code: 2929800, name: "Saúde"},
324
+ {state: bahia, ibge_code: 2930600, name: "Serrolândia"},
325
+ {state: bahia, ibge_code: 2933109, name: "Várzea do Poço"},
326
+ {state: bahia, ibge_code: 2933158, name: "Várzea Nova"},
327
+ {state: bahia, ibge_code: 2902609, name: "Baixa Grande"},
328
+ {state: bahia, ibge_code: 2911907, name: "Iaçu"},
329
+ {state: bahia, ibge_code: 2912608, name: "Ibiquera"},
330
+ {state: bahia, ibge_code: 2914703, name: "Itaberaba"},
331
+ {state: bahia, ibge_code: 2919009, name: "Lajedinho"},
332
+ {state: bahia, ibge_code: 2919603, name: "Macajuba"},
333
+ {state: bahia, ibge_code: 2922102, name: "Mundo Novo"},
334
+ {state: bahia, ibge_code: 2927200, name: "Ruy Barbosa"},
335
+ {state: bahia, ibge_code: 2900405, name: "Água Fria"},
336
+ {state: bahia, ibge_code: 2901700, name: "Antônio Cardoso"},
337
+ {state: bahia, ibge_code: 2908200, name: "Conceição da Feira"},
338
+ {state: bahia, ibge_code: 2908903, name: "Coração de Maria"},
339
+ {state: bahia, ibge_code: 2910305, name: "Elísio Medrado"},
340
+ {state: bahia, ibge_code: 2910800, name: "Feira de Santana"},
341
+ {state: bahia, ibge_code: 2913804, name: "Ipecaetá"},
342
+ {state: bahia, ibge_code: 2914000, name: "Ipirá"},
343
+ {state: bahia, ibge_code: 2916856, name: "Itatim"},
344
+ {state: bahia, ibge_code: 2923308, name: "Ouriçangas"},
345
+ {state: bahia, ibge_code: 2924108, name: "Pedrão"},
346
+ {state: bahia, ibge_code: 2925956, name: "Rafael Jambeiro"},
347
+ {state: bahia, ibge_code: 2928307, name: "Santanópolis"},
348
+ {state: bahia, ibge_code: 2928802, name: "Santo Estêvão"},
349
+ {state: bahia, ibge_code: 2929305, name: "São Gonçalo dos Campos"},
350
+ {state: bahia, ibge_code: 2930402, name: "Serra Preta"},
351
+ {state: bahia, ibge_code: 2931103, name: "Tanquinho"},
352
+ {state: bahia, ibge_code: 2909208, name: "Coronel João Sá"},
353
+ {state: bahia, ibge_code: 2918100, name: "Jeremoabo"},
354
+ {state: bahia, ibge_code: 2924207, name: "Pedro Alexandre"},
355
+ {state: bahia, ibge_code: 2927606, name: "Santa Brígida"},
356
+ {state: bahia, ibge_code: 2906808, name: "Cansanção"},
357
+ {state: bahia, ibge_code: 2922805, name: "Nova Itarana"},
358
+ {state: bahia, ibge_code: 2900504, name: "Érico Cardoso"},
359
+ {state: bahia, ibge_code: 2926905, name: "Rio do Pires"},
360
+ {state: bahia, ibge_code: 2912004, name: "Ibiassucê"},
361
+ {state: bahia, ibge_code: 2918753, name: "Lagoa Real"},
362
+ {state: bahia, ibge_code: 2923407, name: "Palmas de Monte Alto"},
363
+ {state: bahia, ibge_code: 2904605, name: "Brumado"},
364
+ {state: bahia, ibge_code: 2911659, name: "Guajeru"},
365
+ {state: bahia, ibge_code: 2924702, name: "Piripá"},
366
+ {state: bahia, ibge_code: 2931004, name: "Tanhaçu"},
367
+ {state: bahia, ibge_code: 2903508, name: "Belo Campo"},
368
+ {state: bahia, ibge_code: 2906709, name: "Cândido Sales"},
369
+ {state: bahia, ibge_code: 2920403, name: "Manoel Vitorino"},
370
+ {state: bahia, ibge_code: 2910404, name: "Encruzilhada"},
371
+ {state: bahia, ibge_code: 2917102, name: "Itororó"},
372
+ {state: bahia, ibge_code: 2926657, name: "Ribeirão do Largo"},
373
+ {state: bahia, ibge_code: 2922607, name: "Nilo Peçanha"},
374
+ {state: bahia, ibge_code: 2900900, name: "Almadina"},
375
+ {state: bahia, ibge_code: 2903300, name: "Barro Preto"},
376
+ {state: bahia, ibge_code: 2906303, name: "Canavieiras"},
377
+ {state: bahia, ibge_code: 2911501, name: "Gongogi"},
378
+ {state: bahia, ibge_code: 2913606, name: "Ilhéus"},
379
+ {state: bahia, ibge_code: 2914901, name: "Itacaré"},
380
+ {state: bahia, ibge_code: 2915700, name: "Itamari"},
381
+ {state: bahia, ibge_code: 2918555, name: "Jussari"},
382
+ {state: bahia, ibge_code: 2927804, name: "Santa Cruz da Vitória"},
383
+ {state: bahia, ibge_code: 2932507, name: "Una"},
384
+ {state: bahia, ibge_code: 2900801, name: "Alcobaça"},
385
+ {state: bahia, ibge_code: 2912806, name: "Ibirapuã"},
386
+ {state: bahia, ibge_code: 2916005, name: "Itanhém"},
387
+ {state: bahia, ibge_code: 2902500, name: "Baianópolis"},
388
+ {state: bahia, ibge_code: 2907400, name: "Catolândia"},
389
+ {state: bahia, ibge_code: 2911105, name: "Formosa do Rio Preto"},
390
+ {state: bahia, ibge_code: 2928901, name: "São Desidério"},
391
+ {state: bahia, ibge_code: 2901403, name: "Angical"},
392
+ {state: bahia, ibge_code: 2904407, name: "Brejolândia"},
393
+ {state: bahia, ibge_code: 2909406, name: "Cotegipe"},
394
+ {state: bahia, ibge_code: 2920452, name: "Mansidão"},
395
+ {state: bahia, ibge_code: 2928406, name: "Santa Rita de Cássia"},
396
+ {state: bahia, ibge_code: 2930907, name: "Tabocas do Brejo Velho"},
397
+ {state: bahia, ibge_code: 2933455, name: "Wanderley"},
398
+ {state: bahia, ibge_code: 2908101, name: "Cocos"},
399
+ {state: bahia, ibge_code: 2909109, name: "Coribe"},
400
+ {state: bahia, ibge_code: 2909307, name: "Correntina"},
401
+ {state: bahia, ibge_code: 2928109, name: "Santa Maria da Vitória"},
402
+ {state: bahia, ibge_code: 2928208, name: "Santana"},
403
+ {state: bahia, ibge_code: 2929057, name: "São Félix do Coribe"},
404
+ {state: bahia, ibge_code: 2907202, name: "Casa Nova"},
405
+ {state: bahia, ibge_code: 2909901, name: "Curaçá"},
406
+ {state: bahia, ibge_code: 2918407, name: "Juazeiro"},
407
+ {state: bahia, ibge_code: 2926004, name: "Remanso"},
408
+ {state: bahia, ibge_code: 2930204, name: "Sento Sé"},
409
+ {state: bahia, ibge_code: 2930774, name: "Sobradinho"},
410
+ {state: bahia, ibge_code: 2900207, name: "Abaré"},
411
+ {state: bahia, ibge_code: 2911402, name: "Glória"},
412
+ {state: bahia, ibge_code: 2919900, name: "Macururé"},
413
+ {state: bahia, ibge_code: 2924009, name: "Paulo Afonso"},
414
+ {state: bahia, ibge_code: 2902708, name: "Barra"},
415
+ {state: bahia, ibge_code: 2904753, name: "Buritirama"},
416
+ {state: bahia, ibge_code: 2913200, name: "Ibotirama"},
417
+ {state: bahia, ibge_code: 2921609, name: "Morpará"},
418
+ {state: bahia, ibge_code: 2922250, name: "Muquém de São Francisco"},
419
+ {state: bahia, ibge_code: 2933604, name: "Xique-Xique"},
420
+ {state: bahia, ibge_code: 2903904, name: "Bom Jesus da Lapa"}
421
+ ])
@@ -0,0 +1,188 @@
1
+ ceara = Spree::State.find_by! abbr: 'CE'
2
+
3
+ Spree::City.create!([
4
+ {state: ceara, ibge_code: 2306801, name: "Jaguaribara"},
5
+ {state: ceara, ibge_code: 2306900, name: "Jaguaribe"},
6
+ {state: ceara, ibge_code: 2304277, name: "Ererê"},
7
+ {state: ceara, ibge_code: 2306009, name: "Iracema"},
8
+ {state: ceara, ibge_code: 2310803, name: "Pereiro"},
9
+ {state: ceara, ibge_code: 2303808, name: "Cedro"},
10
+ {state: ceara, ibge_code: 2305407, name: "Icó"},
11
+ {state: ceara, ibge_code: 2305506, name: "Iguatu"},
12
+ {state: ceara, ibge_code: 2309508, name: "Orós"},
13
+ {state: ceara, ibge_code: 2311355, name: "Quixelô"},
14
+ {state: ceara, ibge_code: 2300804, name: "Antonina do Norte"},
15
+ {state: ceara, ibge_code: 2303303, name: "Cariús"},
16
+ {state: ceara, ibge_code: 2307403, name: "Jucás"},
17
+ {state: ceara, ibge_code: 2314003, name: "Várzea Alegre"},
18
+ {state: ceara, ibge_code: 2301802, name: "Baixio"},
19
+ {state: ceara, ibge_code: 2305704, name: "Ipaumirim"},
20
+ {state: ceara, ibge_code: 2305209, name: "Hidrolândia"},
21
+ {state: ceara, ibge_code: 2310209, name: "Paracuru"},
22
+ {state: ceara, ibge_code: 2313559, name: "Tururu"},
23
+ {state: ceara, ibge_code: 2304608, name: "General Sampaio"},
24
+ {state: ceara, ibge_code: 2303006, name: "Caridade"},
25
+ {state: ceara, ibge_code: 2301208, name: "Aracoiaba"},
26
+ {state: ceara, ibge_code: 2305100, name: "Guaramiranga"},
27
+ {state: ceara, ibge_code: 2311603, name: "Redenção"},
28
+ {state: ceara, ibge_code: 2302206, name: "Beberibe"},
29
+ {state: ceara, ibge_code: 2303709, name: "Caucaia"},
30
+ {state: ceara, ibge_code: 2306256, name: "Itaitinga"},
31
+ {state: ceara, ibge_code: 2309607, name: "Pacajus"},
32
+ {state: ceara, ibge_code: 2305605, name: "Independência"},
33
+ {state: ceara, ibge_code: 2311264, name: "Quiterianópolis"},
34
+ {state: ceara, ibge_code: 2307635, name: "Madalena"},
35
+ {state: ceara, ibge_code: 2304251, name: "Cruz"},
36
+ {state: ceara, ibge_code: 2307254, name: "Jijoca de Jericoacoara"},
37
+ {state: ceara, ibge_code: 2305308, name: "Ibiapina"},
38
+ {state: ceara, ibge_code: 2314102, name: "Viçosa do Ceará"},
39
+ {state: ceara, ibge_code: 2300507, name: "Alcântaras"},
40
+ {state: ceara, ibge_code: 2304657, name: "Graça"},
41
+ {state: ceara, ibge_code: 2308377, name: "Miraíma"},
42
+ {state: ceara, ibge_code: 2312007, name: "Santana do Acaraú"},
43
+ {state: ceara, ibge_code: 2311009, name: "Poranga"},
44
+ {state: ceara, ibge_code: 2301257, name: "Ararendá"},
45
+ {state: ceara, ibge_code: 2308351, name: "Milhã"},
46
+ {state: ceara, ibge_code: 2311231, name: "Potiretama"},
47
+ {state: ceara, ibge_code: 2300606, name: "Altaneira"},
48
+ {state: ceara, ibge_code: 2310258, name: "Paraipaba"},
49
+ {state: ceara, ibge_code: 2301406, name: "Aratuba"},
50
+ {state: ceara, ibge_code: 2304285, name: "Eusébio"},
51
+ {state: ceara, ibge_code: 2309409, name: "Novo Oriente"},
52
+ {state: ceara, ibge_code: 2311900, name: "Saboeiro"},
53
+ {state: ceara, ibge_code: 2305357, name: "Icapuí"},
54
+ {state: ceara, ibge_code: 2306702, name: "Jaguaretama"},
55
+ {state: ceara, ibge_code: 2313252, name: "Tarrafas"},
56
+ {state: ceara, ibge_code: 2303204, name: "Caririaçu"},
57
+ {state: ceara, ibge_code: 2300101, name: "Abaiara"},
58
+ {state: ceara, ibge_code: 2313401, name: "Tianguá"},
59
+ {state: ceara, ibge_code: 2309003, name: "Mucambo"},
60
+ {state: ceara, ibge_code: 2313757, name: "Umirim"},
61
+ {state: ceara, ibge_code: 2313807, name: "Uruburetama"},
62
+ {state: ceara, ibge_code: 2300903, name: "Apuiarés"},
63
+ {state: ceara, ibge_code: 2310704, name: "Pentecoste"},
64
+ {state: ceara, ibge_code: 2312601, name: "São Luís do Curu"},
65
+ {state: ceara, ibge_code: 2313351, name: "Tejuçuoca"},
66
+ {state: ceara, ibge_code: 2302800, name: "Canindé"},
67
+ {state: ceara, ibge_code: 2306603, name: "Itatira"},
68
+ {state: ceara, ibge_code: 2310407, name: "Paramoti"},
69
+ {state: ceara, ibge_code: 2300150, name: "Acarape"},
70
+ {state: ceara, ibge_code: 2302107, name: "Baturité"},
71
+ {state: ceara, ibge_code: 2302909, name: "Capistrano"},
72
+ {state: ceara, ibge_code: 2306504, name: "Itapiúna"},
73
+ {state: ceara, ibge_code: 2309102, name: "Mulungu"},
74
+ {state: ceara, ibge_code: 2309805, name: "Pacoti"},
75
+ {state: ceara, ibge_code: 2310100, name: "Palmácia"},
76
+ {state: ceara, ibge_code: 2301950, name: "Barreira"},
77
+ {state: ceara, ibge_code: 2303956, name: "Chorozinho"},
78
+ {state: ceara, ibge_code: 2309458, name: "Ocara"},
79
+ {state: ceara, ibge_code: 2303501, name: "Cascavel"},
80
+ {state: ceara, ibge_code: 2310852, name: "Pindoretama"},
81
+ {state: ceara, ibge_code: 2301000, name: "Aquiraz"},
82
+ {state: ceara, ibge_code: 2304400, name: "Fortaleza"},
83
+ {state: ceara, ibge_code: 2304954, name: "Guaiúba"},
84
+ {state: ceara, ibge_code: 2307650, name: "Maracanaú"},
85
+ {state: ceara, ibge_code: 2307700, name: "Maranguape"},
86
+ {state: ceara, ibge_code: 2309706, name: "Pacatuba"},
87
+ {state: ceara, ibge_code: 2305233, name: "Horizonte"},
88
+ {state: ceara, ibge_code: 2304103, name: "Crateús"},
89
+ {state: ceara, ibge_code: 2305654, name: "Ipaporanga"},
90
+ {state: ceara, ibge_code: 2308609, name: "Monsenhor Tabosa"},
91
+ {state: ceara, ibge_code: 2309300, name: "Nova Russas"},
92
+ {state: ceara, ibge_code: 2313203, name: "Tamboril"},
93
+ {state: ceara, ibge_code: 2301851, name: "Banabuiú"},
94
+ {state: ceara, ibge_code: 2302404, name: "Boa Viagem"},
95
+ {state: ceara, ibge_code: 2303931, name: "Choró"},
96
+ {state: ceara, ibge_code: 2305266, name: "Ibaretama"},
97
+ {state: ceara, ibge_code: 2311306, name: "Quixadá"},
98
+ {state: ceara, ibge_code: 2311405, name: "Quixeramobim"},
99
+ {state: ceara, ibge_code: 2300408, name: "Aiuaba"},
100
+ {state: ceara, ibge_code: 2301505, name: "Arneiroz"},
101
+ {state: ceara, ibge_code: 2303600, name: "Catarina"},
102
+ {state: ceara, ibge_code: 2310308, name: "Parambu"},
103
+ {state: ceara, ibge_code: 2313302, name: "Tauá"},
104
+ {state: ceara, ibge_code: 2300309, name: "Acopiara"},
105
+ {state: ceara, ibge_code: 2304269, name: "Deputado Irapuan Pinheiro"},
106
+ {state: ceara, ibge_code: 2308500, name: "Mombaça"},
107
+ {state: ceara, ibge_code: 2310506, name: "Pedra Branca"},
108
+ {state: ceara, ibge_code: 2310902, name: "Piquet Carneiro"},
109
+ {state: ceara, ibge_code: 2312700, name: "Senador Pompeu"},
110
+ {state: ceara, ibge_code: 2313005, name: "Solonópole"},
111
+ {state: ceara, ibge_code: 2301109, name: "Aracati"},
112
+ {state: ceara, ibge_code: 2304459, name: "Fortim"},
113
+ {state: ceara, ibge_code: 2306207, name: "Itaiçaba"},
114
+ {state: ceara, ibge_code: 2300705, name: "Alto Santo"},
115
+ {state: ceara, ibge_code: 2305332, name: "Ibicuitinga"},
116
+ {state: ceara, ibge_code: 2307007, name: "Jaguaruana"},
117
+ {state: ceara, ibge_code: 2307601, name: "Limoeiro do Norte"},
118
+ {state: ceara, ibge_code: 2308708, name: "Morada Nova"},
119
+ {state: ceara, ibge_code: 2310001, name: "Palhano"},
120
+ {state: ceara, ibge_code: 2311504, name: "Quixeré"},
121
+ {state: ceara, ibge_code: 2311801, name: "Russas"},
122
+ {state: ceara, ibge_code: 2312502, name: "São João do Jaguaribe"},
123
+ {state: ceara, ibge_code: 2313104, name: "Tabuleiro do Norte"},
124
+ {state: ceara, ibge_code: 2307502, name: "Lavras da Mangabeira"},
125
+ {state: ceara, ibge_code: 2313708, name: "Umari"},
126
+ {state: ceara, ibge_code: 2301307, name: "Araripe"},
127
+ {state: ceara, ibge_code: 2301604, name: "Assaré"},
128
+ {state: ceara, ibge_code: 2302701, name: "Campos Sales"},
129
+ {state: ceara, ibge_code: 2311207, name: "Potengi"},
130
+ {state: ceara, ibge_code: 2311959, name: "Salitre"},
131
+ {state: ceara, ibge_code: 2304301, name: "Farias Brito"},
132
+ {state: ceara, ibge_code: 2304806, name: "Granjeiro"},
133
+ {state: ceara, ibge_code: 2301703, name: "Aurora"},
134
+ {state: ceara, ibge_code: 2302008, name: "Barro"},
135
+ {state: ceara, ibge_code: 2308104, name: "Mauriti"},
136
+ {state: ceara, ibge_code: 2301901, name: "Barbalha"},
137
+ {state: ceara, ibge_code: 2304202, name: "Crato"},
138
+ {state: ceara, ibge_code: 2307106, name: "Jardim"},
139
+ {state: ceara, ibge_code: 2307304, name: "Juazeiro do Norte"},
140
+ {state: ceara, ibge_code: 2308401, name: "Missão Velha"},
141
+ {state: ceara, ibge_code: 2309201, name: "Nova Olinda"},
142
+ {state: ceara, ibge_code: 2311108, name: "Porteiras"},
143
+ {state: ceara, ibge_code: 2312106, name: "Santana do Cariri"},
144
+ {state: ceara, ibge_code: 2302503, name: "Brejo Santo"},
145
+ {state: ceara, ibge_code: 2307205, name: "Jati"},
146
+ {state: ceara, ibge_code: 2308302, name: "Milagres"},
147
+ {state: ceara, ibge_code: 2310605, name: "Penaforte"},
148
+ {state: ceara, ibge_code: 2300200, name: "Acaraú"},
149
+ {state: ceara, ibge_code: 2302057, name: "Barroquinha"},
150
+ {state: ceara, ibge_code: 2302305, name: "Bela Cruz"},
151
+ {state: ceara, ibge_code: 2302602, name: "Camocim"},
152
+ {state: ceara, ibge_code: 2303907, name: "Chaval"},
153
+ {state: ceara, ibge_code: 2304707, name: "Granja"},
154
+ {state: ceara, ibge_code: 2306553, name: "Itarema"},
155
+ {state: ceara, ibge_code: 2307809, name: "Marco"},
156
+ {state: ceara, ibge_code: 2307908, name: "Martinópole"},
157
+ {state: ceara, ibge_code: 2308906, name: "Morrinhos"},
158
+ {state: ceara, ibge_code: 2303402, name: "Carnaubal"},
159
+ {state: ceara, ibge_code: 2304236, name: "Croatá"},
160
+ {state: ceara, ibge_code: 2305001, name: "Guaraciaba do Norte"},
161
+ {state: ceara, ibge_code: 2312304, name: "São Benedito"},
162
+ {state: ceara, ibge_code: 2313609, name: "Ubajara"},
163
+ {state: ceara, ibge_code: 2304004, name: "Coreaú"},
164
+ {state: ceara, ibge_code: 2304509, name: "Frecheirinha"},
165
+ {state: ceara, ibge_code: 2308807, name: "Moraújo"},
166
+ {state: ceara, ibge_code: 2313906, name: "Uruoca"},
167
+ {state: ceara, ibge_code: 2308203, name: "Meruoca"},
168
+ {state: ceara, ibge_code: 2303105, name: "Cariré"},
169
+ {state: ceara, ibge_code: 2304350, name: "Forquilha"},
170
+ {state: ceara, ibge_code: 2304905, name: "Groaíras"},
171
+ {state: ceara, ibge_code: 2306108, name: "Irauçuba"},
172
+ {state: ceara, ibge_code: 2308005, name: "Massapê"},
173
+ {state: ceara, ibge_code: 2309904, name: "Pacujá"},
174
+ {state: ceara, ibge_code: 2312809, name: "Senador Sá"},
175
+ {state: ceara, ibge_code: 2312908, name: "Sobral"},
176
+ {state: ceara, ibge_code: 2305803, name: "Ipu"},
177
+ {state: ceara, ibge_code: 2305902, name: "Ipueiras"},
178
+ {state: ceara, ibge_code: 2310951, name: "Pires Ferreira"},
179
+ {state: ceara, ibge_code: 2311702, name: "Reriutaba"},
180
+ {state: ceara, ibge_code: 2313955, name: "Varjota"},
181
+ {state: ceara, ibge_code: 2303659, name: "Catunda"},
182
+ {state: ceara, ibge_code: 2312205, name: "Santa Quitéria"},
183
+ {state: ceara, ibge_code: 2300754, name: "Amontada"},
184
+ {state: ceara, ibge_code: 2306405, name: "Itapipoca"},
185
+ {state: ceara, ibge_code: 2313500, name: "Trairi"},
186
+ {state: ceara, ibge_code: 2312403, name: "São Gonçalo do Amarante"},
187
+ {state: ceara, ibge_code: 2306306, name: "Itapagé"}
188
+ ])
@@ -0,0 +1,5 @@
1
+ distrito_federal = Spree::State.find_by! abbr: 'DF'
2
+
3
+ Spree::City.create!([
4
+ {state: distrito_federal, ibge_code: 5300108, name: "Brasília"}
5
+ ])