addresses 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78ebd45263e53ef9fa1bbd2e2b68a6a33126ee80
4
- data.tar.gz: 7905ccc4427fea023d9f05b81c7f8b212133d433
3
+ metadata.gz: 0b25d90d645c8d6050d12019f0b955dc6efd8c03
4
+ data.tar.gz: 58624c926d4efaac3c36d932e7d28c16d9bd8f9b
5
5
  SHA512:
6
- metadata.gz: f18584a1d7c97cb677cbb484e9c22d44d485f22993cdbb29ebc149d249c8473bf76ecddc79709413f49623148ec33ddbe2c90210d78c56c10559b9fce80dc41a
7
- data.tar.gz: acb0ba24de286110c38c8a993e86715159246db78ef4a4d60324b3acedf47eb07acc87edae2f7fabd98d59aa630daaa4e6293ad37c12d67be0c07ced90f94802
6
+ metadata.gz: 633972255244dfeacc7814ce7658ec36f3564b0dfff861d09ae5c340840c5c436b36e76ba2984360cc5b798f8f7e8c45d9f36900439b202b415fffcfb2906004
7
+ data.tar.gz: 920f739aaf4147f5feeca01697ab7a3fd93bcdd0cc9903b6c4f88b1015d09d1f2b8f0e3a631821d451ba11d837d22ffd870c4290b91eb7180927a1ea3cffa653
@@ -3,7 +3,8 @@ module Addresses
3
3
  belongs_to :zipcode
4
4
  belongs_to :addressable, polymorphic: true
5
5
 
6
- validates :zipcode_id, :number, presence: true
6
+ validates :number, presence: true
7
+ validates :zipcode_id, presence: true, if: Proc.new{|a| a.zipcode.street.blank? }
7
8
  delegate :street, :neighborhood, :city, to: :zipcode
8
9
 
9
10
  accepts_nested_attributes_for :zipcode, allow_destroy: false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addresses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilbert Ribeiro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-06 00:00:00.000000000 Z
12
+ date: 2018-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -145,9 +145,7 @@ files:
145
145
  - spec/dummy/config/locales/pt-BR.yml
146
146
  - spec/dummy/config/routes.rb
147
147
  - spec/dummy/db/schema.rb
148
- - spec/dummy/db/test.sqlite3
149
148
  - spec/dummy/log/development.log
150
- - spec/dummy/log/test.log
151
149
  - spec/dummy/public/404.html
152
150
  - spec/dummy/public/422.html
153
151
  - spec/dummy/public/500.html
@@ -206,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
204
  version: '0'
207
205
  requirements: []
208
206
  rubyforge_project:
209
- rubygems_version: 2.4.5.1
207
+ rubygems_version: 2.6.10
210
208
  signing_key:
211
209
  specification_version: 4
212
210
  summary: This engine allows create default addresses models for any usage.
@@ -242,11 +240,9 @@ test_files:
242
240
  - spec/dummy/config/routes.rb
243
241
  - spec/dummy/config.ru
244
242
  - spec/dummy/db/schema.rb
245
- - spec/dummy/db/test.sqlite3
246
243
  - spec/dummy/Gemfile
247
244
  - spec/dummy/Gemfile.lock
248
245
  - spec/dummy/log/development.log
249
- - spec/dummy/log/test.log
250
246
  - spec/dummy/public/404.html
251
247
  - spec/dummy/public/422.html
252
248
  - spec/dummy/public/500.html
Binary file
@@ -1,1423 +0,0 @@
1
-  (0.6ms) begin transaction
2
-  (0.1ms) rollback transaction
3
-  (0.1ms) begin transaction
4
-  (0.1ms) rollback transaction
5
-  (0.1ms) begin transaction
6
-  (0.0ms) rollback transaction
7
-  (0.1ms) begin transaction
8
-  (0.0ms) rollback transaction
9
-  (0.1ms) begin transaction
10
-  (0.1ms) rollback transaction
11
-  (0.1ms) begin transaction
12
-  (0.0ms) rollback transaction
13
-  (0.1ms) begin transaction
14
-  (0.0ms) rollback transaction
15
-  (0.1ms) begin transaction
16
-  (0.0ms) rollback transaction
17
-  (0.1ms) begin transaction
18
-  (0.0ms) rollback transaction
19
-  (0.1ms) begin transaction
20
-  (0.1ms) rollback transaction
21
-  (0.1ms) begin transaction
22
-  (0.0ms) rollback transaction
23
-  (0.1ms) begin transaction
24
-  (0.0ms) rollback transaction
25
-  (0.1ms) begin transaction
26
-  (0.0ms) rollback transaction
27
-  (0.1ms) begin transaction
28
-  (0.1ms) rollback transaction
29
-  (0.1ms) begin transaction
30
-  (0.1ms) rollback transaction
31
-  (0.1ms) begin transaction
32
-  (0.1ms) rollback transaction
33
-  (0.1ms) begin transaction
34
-  (0.1ms) rollback transaction
35
-  (0.1ms) begin transaction
36
-  (0.0ms) rollback transaction
37
-  (0.1ms) begin transaction
38
-  (0.1ms) rollback transaction
39
-  (0.1ms) begin transaction
40
-  (0.0ms) rollback transaction
41
-  (0.1ms) begin transaction
42
-  (0.0ms) rollback transaction
43
-  (0.1ms) begin transaction
44
-  (0.1ms) rollback transaction
45
-  (0.1ms) begin transaction
46
-  (0.1ms) rollback transaction
47
-  (0.1ms) begin transaction
48
-  (0.1ms) rollback transaction
49
-  (0.1ms) begin transaction
50
-  (0.1ms) rollback transaction
51
-  (0.1ms) begin transaction
52
-  (0.0ms) rollback transaction
53
-  (0.1ms) begin transaction
54
-  (0.1ms) rollback transaction
55
-  (0.1ms) begin transaction
56
-  (0.0ms) rollback transaction
57
-  (0.1ms) begin transaction
58
-  (0.1ms) rollback transaction
59
-  (0.1ms) begin transaction
60
-  (0.1ms) rollback transaction
61
-  (0.1ms) begin transaction
62
-  (0.1ms) rollback transaction
63
-  (0.1ms) begin transaction
64
-  (0.1ms) rollback transaction
65
-  (0.1ms) begin transaction
66
-  (0.1ms) rollback transaction
67
-  (0.1ms) begin transaction
68
-  (0.1ms) rollback transaction
69
-  (0.1ms) begin transaction
70
-  (0.1ms) rollback transaction
71
-  (0.1ms) begin transaction
72
-  (0.2ms) rollback transaction
73
-  (0.1ms) begin transaction
74
-  (0.1ms) rollback transaction
75
-  (0.1ms) begin transaction
76
-  (0.1ms) rollback transaction
77
-  (0.1ms) begin transaction
78
-  (0.1ms) rollback transaction
79
-  (0.1ms) begin transaction
80
-  (0.1ms) rollback transaction
81
-  (0.1ms) begin transaction
82
-  (0.1ms) rollback transaction
83
-  (0.1ms) begin transaction
84
-  (0.1ms) rollback transaction
85
-  (0.1ms) begin transaction
86
-  (0.1ms) rollback transaction
87
-  (0.1ms) begin transaction
88
-  (0.1ms) rollback transaction
89
-  (0.1ms) begin transaction
90
-  (0.1ms) rollback transaction
91
-  (0.1ms) begin transaction
92
-  (0.1ms) rollback transaction
93
-  (0.1ms) begin transaction
94
-  (0.1ms) rollback transaction
95
-  (0.1ms) begin transaction
96
-  (0.1ms) rollback transaction
97
-  (0.1ms) begin transaction
98
-  (0.1ms) rollback transaction
99
-  (0.1ms) begin transaction
100
-  (0.1ms) rollback transaction
101
-  (0.1ms) begin transaction
102
-  (0.1ms) rollback transaction
103
-  (0.1ms) begin transaction
104
-  (0.1ms) rollback transaction
105
-  (8.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
106
-  (1.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
107
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
108
- Migrating to CreateAddressesCountries (20140327141509)
109
-  (0.1ms) begin transaction
110
-  (0.5ms) CREATE TABLE "addresses_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "acronym" varchar, "created_at" datetime, "updated_at" datetime)
111
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140327141509"]]
112
-  (0.9ms) commit transaction
113
- Migrating to CreateAddressesStates (20140327163801)
114
-  (0.1ms) begin transaction
115
-  (0.5ms) CREATE TABLE "addresses_states" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "acronym" varchar, "country_id" integer, "created_at" datetime, "updated_at" datetime)
116
-  (0.1ms) select sqlite_version(*)
117
-  (0.2ms) CREATE INDEX "index_addresses_states_on_country_id" ON "addresses_states" ("country_id")
118
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140327163801"]]
119
-  (0.8ms) commit transaction
120
- Migrating to CreateAddressesCities (20140327171527)
121
-  (0.1ms) begin transaction
122
-  (0.4ms) CREATE TABLE "addresses_cities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "state_id" integer, "created_at" datetime, "updated_at" datetime)
123
-  (0.1ms) CREATE INDEX "index_addresses_cities_on_state_id" ON "addresses_cities" ("state_id")
124
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140327171527"]]
125
-  (0.8ms) commit transaction
126
- Migrating to CreateAddressesNeighborhoods (20140327190411)
127
-  (0.1ms) begin transaction
128
-  (0.5ms) CREATE TABLE "addresses_neighborhoods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "city_id" integer, "name" varchar, "created_at" datetime, "updated_at" datetime)
129
-  (0.1ms) CREATE INDEX "index_addresses_neighborhoods_on_city_id" ON "addresses_neighborhoods" ("city_id")
130
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140327190411"]]
131
-  (0.8ms) commit transaction
132
- Migrating to CreateAddressesAddresses (20140328120418)
133
-  (0.1ms) begin transaction
134
-  (0.5ms) CREATE TABLE "addresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "number" varchar, "complement" varchar, "city_id" integer, "neighborhood_id" integer, "zipcode" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
135
-  (0.2ms) CREATE INDEX "index_addresses_addresses_on_city_id" ON "addresses_addresses" ("city_id")
136
-  (0.1ms)  SELECT sql
137
- FROM sqlite_master
138
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
139
- UNION ALL
140
- SELECT sql
141
- FROM sqlite_temp_master
142
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
143
- 
144
-  (0.1ms) CREATE INDEX "index_addresses_addresses_on_neighborhood_id" ON "addresses_addresses" ("neighborhood_id")
145
-  (0.1ms)  SELECT sql
146
- FROM sqlite_master
147
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
148
- UNION ALL
149
- SELECT sql
150
- FROM sqlite_temp_master
151
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
152
- 
153
-  (0.1ms)  SELECT sql
154
- FROM sqlite_master
155
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
156
- UNION ALL
157
- SELECT sql
158
- FROM sqlite_temp_master
159
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
160
- 
161
-  (0.1ms) CREATE INDEX "index_addresses_addresses_on_addressable_id" ON "addresses_addresses" ("addressable_id")
162
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140328120418"]]
163
-  (0.9ms) commit transaction
164
- Migrating to CreateAddressesZipcodes (20160920172944)
165
-  (0.1ms) begin transaction
166
-  (0.5ms) CREATE TABLE "addresses_zipcodes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "city_id" integer, "neighborhood_id" integer, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
167
-  (0.2ms) CREATE INDEX "index_addresses_zipcodes_on_city_id" ON "addresses_zipcodes" ("city_id")
168
-  (0.1ms)  SELECT sql
169
- FROM sqlite_master
170
- WHERE name='index_addresses_zipcodes_on_city_id' AND type='index'
171
- UNION ALL
172
- SELECT sql
173
- FROM sqlite_temp_master
174
- WHERE name='index_addresses_zipcodes_on_city_id' AND type='index'
175
- 
176
-  (0.2ms) CREATE INDEX "index_addresses_zipcodes_on_neighborhood_id" ON "addresses_zipcodes" ("neighborhood_id")
177
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160920172944"]]
178
-  (1.0ms) commit transaction
179
- Migrating to RemoveZipcodeAttributesFromAddresses (20160920174406)
180
-  (0.1ms) begin transaction
181
-  (0.4ms) CREATE TEMPORARY TABLE "aaddresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar, "number" varchar, "complement" varchar, "city_id" integer, "neighborhood_id" integer, "zipcode" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
182
-  (0.1ms)  SELECT sql
183
- FROM sqlite_master
184
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
185
- UNION ALL
186
- SELECT sql
187
- FROM sqlite_temp_master
188
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
189
- 
190
-  (0.1ms)  SELECT sql
191
- FROM sqlite_master
192
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
193
- UNION ALL
194
- SELECT sql
195
- FROM sqlite_temp_master
196
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
197
- 
198
-  (0.1ms)  SELECT sql
199
- FROM sqlite_master
200
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
201
- UNION ALL
202
- SELECT sql
203
- FROM sqlite_temp_master
204
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
205
- 
206
-  (0.3ms) CREATE INDEX "tindex_aaddresses_addresses_on_addressable_id" ON "aaddresses_addresses" ("addressable_id")
207
-  (0.2ms) CREATE INDEX "tindex_aaddresses_addresses_on_neighborhood_id" ON "aaddresses_addresses" ("neighborhood_id")
208
-  (0.2ms) CREATE INDEX "tindex_aaddresses_addresses_on_city_id" ON "aaddresses_addresses" ("city_id")
209
-  (0.2ms) INSERT INTO "aaddresses_addresses" ("id","street","number","complement","city_id","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at")
210
- SELECT "id","street","number","complement","city_id","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at" FROM "addresses_addresses"
211
-  (0.5ms) DROP TABLE "addresses_addresses"
212
-  (0.2ms) CREATE TABLE "addresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "complement" varchar, "city_id" integer, "neighborhood_id" integer, "zipcode" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
213
-  (0.1ms)  SELECT sql
214
- FROM sqlite_master
215
- WHERE name='tindex_aaddresses_addresses_on_city_id' AND type='index'
216
- UNION ALL
217
- SELECT sql
218
- FROM sqlite_temp_master
219
- WHERE name='tindex_aaddresses_addresses_on_city_id' AND type='index'
220
- 
221
-  (0.1ms)  SELECT sql
222
- FROM sqlite_master
223
- WHERE name='tindex_aaddresses_addresses_on_neighborhood_id' AND type='index'
224
- UNION ALL
225
- SELECT sql
226
- FROM sqlite_temp_master
227
- WHERE name='tindex_aaddresses_addresses_on_neighborhood_id' AND type='index'
228
- 
229
-  (0.1ms)  SELECT sql
230
- FROM sqlite_master
231
- WHERE name='tindex_aaddresses_addresses_on_addressable_id' AND type='index'
232
- UNION ALL
233
- SELECT sql
234
- FROM sqlite_temp_master
235
- WHERE name='tindex_aaddresses_addresses_on_addressable_id' AND type='index'
236
- 
237
-  (0.1ms) CREATE INDEX "index_addresses_addresses_on_city_id" ON "addresses_addresses" ("city_id")
238
-  (0.1ms)  SELECT sql
239
- FROM sqlite_master
240
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
241
- UNION ALL
242
- SELECT sql
243
- FROM sqlite_temp_master
244
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
245
- 
246
-  (0.1ms) CREATE INDEX "index_addresses_addresses_on_neighborhood_id" ON "addresses_addresses" ("neighborhood_id")
247
-  (0.1ms)  SELECT sql
248
- FROM sqlite_master
249
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
250
- UNION ALL
251
- SELECT sql
252
- FROM sqlite_temp_master
253
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
254
- 
255
-  (0.1ms)  SELECT sql
256
- FROM sqlite_master
257
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
258
- UNION ALL
259
- SELECT sql
260
- FROM sqlite_temp_master
261
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
262
- 
263
-  (0.1ms) CREATE INDEX "index_addresses_addresses_on_addressable_id" ON "addresses_addresses" ("addressable_id")
264
-  (0.1ms) INSERT INTO "addresses_addresses" ("id","number","complement","city_id","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at")
265
- SELECT "id","number","complement","city_id","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at" FROM "aaddresses_addresses"
266
-  (0.2ms) DROP TABLE "aaddresses_addresses"
267
-  (0.6ms) CREATE TEMPORARY TABLE "aaddresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "complement" varchar, "city_id" integer, "neighborhood_id" integer, "zipcode" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
268
-  (0.1ms)  SELECT sql
269
- FROM sqlite_master
270
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
271
- UNION ALL
272
- SELECT sql
273
- FROM sqlite_temp_master
274
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
275
- 
276
-  (0.1ms)  SELECT sql
277
- FROM sqlite_master
278
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
279
- UNION ALL
280
- SELECT sql
281
- FROM sqlite_temp_master
282
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
283
- 
284
-  (0.1ms)  SELECT sql
285
- FROM sqlite_master
286
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
287
- UNION ALL
288
- SELECT sql
289
- FROM sqlite_temp_master
290
- WHERE name='index_addresses_addresses_on_city_id' AND type='index'
291
- 
292
-  (0.1ms) CREATE INDEX "tindex_aaddresses_addresses_on_addressable_id" ON "aaddresses_addresses" ("addressable_id")
293
-  (0.1ms) CREATE INDEX "tindex_aaddresses_addresses_on_neighborhood_id" ON "aaddresses_addresses" ("neighborhood_id")
294
-  (0.1ms) CREATE INDEX "tindex_aaddresses_addresses_on_city_id" ON "aaddresses_addresses" ("city_id")
295
-  (0.1ms) INSERT INTO "aaddresses_addresses" ("id","number","complement","city_id","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at")
296
- SELECT "id","number","complement","city_id","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at" FROM "addresses_addresses"
297
-  (0.2ms) DROP TABLE "addresses_addresses"
298
-  (0.2ms) CREATE TABLE "addresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "complement" varchar, "neighborhood_id" integer, "zipcode" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
299
-  (0.1ms)  SELECT sql
300
- FROM sqlite_master
301
- WHERE name='tindex_aaddresses_addresses_on_city_id' AND type='index'
302
- UNION ALL
303
- SELECT sql
304
- FROM sqlite_temp_master
305
- WHERE name='tindex_aaddresses_addresses_on_city_id' AND type='index'
306
- 
307
-  (0.1ms)  SELECT sql
308
- FROM sqlite_master
309
- WHERE name='tindex_aaddresses_addresses_on_neighborhood_id' AND type='index'
310
- UNION ALL
311
- SELECT sql
312
- FROM sqlite_temp_master
313
- WHERE name='tindex_aaddresses_addresses_on_neighborhood_id' AND type='index'
314
- 
315
-  (0.1ms)  SELECT sql
316
- FROM sqlite_master
317
- WHERE name='tindex_aaddresses_addresses_on_addressable_id' AND type='index'
318
- UNION ALL
319
- SELECT sql
320
- FROM sqlite_temp_master
321
- WHERE name='tindex_aaddresses_addresses_on_addressable_id' AND type='index'
322
- 
323
-  (0.1ms) CREATE INDEX "index_addresses_addresses_on_neighborhood_id" ON "addresses_addresses" ("neighborhood_id")
324
-  (0.1ms)  SELECT sql
325
- FROM sqlite_master
326
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
327
- UNION ALL
328
- SELECT sql
329
- FROM sqlite_temp_master
330
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
331
- 
332
-  (0.1ms) CREATE INDEX "index_addresses_addresses_on_addressable_id" ON "addresses_addresses" ("addressable_id")
333
-  (0.2ms) INSERT INTO "addresses_addresses" ("id","number","complement","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at")
334
- SELECT "id","number","complement","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at" FROM "aaddresses_addresses"
335
-  (0.2ms) DROP TABLE "aaddresses_addresses"
336
-  (0.2ms) CREATE TEMPORARY TABLE "aaddresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "complement" varchar, "neighborhood_id" integer, "zipcode" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
337
-  (0.1ms)  SELECT sql
338
- FROM sqlite_master
339
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
340
- UNION ALL
341
- SELECT sql
342
- FROM sqlite_temp_master
343
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
344
- 
345
-  (0.1ms)  SELECT sql
346
- FROM sqlite_master
347
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
348
- UNION ALL
349
- SELECT sql
350
- FROM sqlite_temp_master
351
- WHERE name='index_addresses_addresses_on_neighborhood_id' AND type='index'
352
- 
353
-  (0.1ms) CREATE INDEX "tindex_aaddresses_addresses_on_addressable_id" ON "aaddresses_addresses" ("addressable_id")
354
-  (0.1ms) CREATE INDEX "tindex_aaddresses_addresses_on_neighborhood_id" ON "aaddresses_addresses" ("neighborhood_id")
355
-  (0.1ms) INSERT INTO "aaddresses_addresses" ("id","number","complement","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at")
356
- SELECT "id","number","complement","neighborhood_id","zipcode","addressable_id","addressable_type","created_at","updated_at" FROM "addresses_addresses"
357
-  (0.2ms) DROP TABLE "addresses_addresses"
358
-  (0.2ms) CREATE TABLE "addresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "complement" varchar, "zipcode" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
359
-  (0.1ms)  SELECT sql
360
- FROM sqlite_master
361
- WHERE name='tindex_aaddresses_addresses_on_neighborhood_id' AND type='index'
362
- UNION ALL
363
- SELECT sql
364
- FROM sqlite_temp_master
365
- WHERE name='tindex_aaddresses_addresses_on_neighborhood_id' AND type='index'
366
- 
367
-  (0.1ms)  SELECT sql
368
- FROM sqlite_master
369
- WHERE name='tindex_aaddresses_addresses_on_addressable_id' AND type='index'
370
- UNION ALL
371
- SELECT sql
372
- FROM sqlite_temp_master
373
- WHERE name='tindex_aaddresses_addresses_on_addressable_id' AND type='index'
374
- 
375
-  (0.2ms) CREATE INDEX "index_addresses_addresses_on_addressable_id" ON "addresses_addresses" ("addressable_id")
376
-  (0.1ms) INSERT INTO "addresses_addresses" ("id","number","complement","zipcode","addressable_id","addressable_type","created_at","updated_at")
377
- SELECT "id","number","complement","zipcode","addressable_id","addressable_type","created_at","updated_at" FROM "aaddresses_addresses"
378
-  (0.2ms) DROP TABLE "aaddresses_addresses"
379
-  (0.2ms) CREATE TEMPORARY TABLE "aaddresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "complement" varchar, "zipcode" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
380
-  (0.1ms)  SELECT sql
381
- FROM sqlite_master
382
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
383
- UNION ALL
384
- SELECT sql
385
- FROM sqlite_temp_master
386
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
387
- 
388
-  (0.1ms) CREATE INDEX "tindex_aaddresses_addresses_on_addressable_id" ON "aaddresses_addresses" ("addressable_id")
389
-  (0.1ms) INSERT INTO "aaddresses_addresses" ("id","number","complement","zipcode","addressable_id","addressable_type","created_at","updated_at")
390
- SELECT "id","number","complement","zipcode","addressable_id","addressable_type","created_at","updated_at" FROM "addresses_addresses"
391
-  (0.1ms) DROP TABLE "addresses_addresses"
392
-  (0.1ms) CREATE TABLE "addresses_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "complement" varchar, "addressable_id" integer, "addressable_type" varchar, "created_at" datetime, "updated_at" datetime)
393
-  (0.1ms)  SELECT sql
394
- FROM sqlite_master
395
- WHERE name='tindex_aaddresses_addresses_on_addressable_id' AND type='index'
396
- UNION ALL
397
- SELECT sql
398
- FROM sqlite_temp_master
399
- WHERE name='tindex_aaddresses_addresses_on_addressable_id' AND type='index'
400
- 
401
-  (0.2ms) CREATE INDEX "index_addresses_addresses_on_addressable_id" ON "addresses_addresses" ("addressable_id")
402
-  (0.1ms) INSERT INTO "addresses_addresses" ("id","number","complement","addressable_id","addressable_type","created_at","updated_at")
403
- SELECT "id","number","complement","addressable_id","addressable_type","created_at","updated_at" FROM "aaddresses_addresses"
404
-  (0.2ms) DROP TABLE "aaddresses_addresses"
405
-  (0.2ms) ALTER TABLE "addresses_addresses" ADD "zipcode_id" integer
406
-  (0.1ms)  SELECT sql
407
- FROM sqlite_master
408
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
409
- UNION ALL
410
- SELECT sql
411
- FROM sqlite_temp_master
412
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
413
- 
414
-  (0.1ms) CREATE INDEX "index_addresses_addresses_on_zipcode_id" ON "addresses_addresses" ("zipcode_id")
415
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160920174406"]]
416
-  (1.4ms) commit transaction
417
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
418
-  (0.1ms) begin transaction
419
- SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-09-06 02:38:29 UTC], ["updated_at", 2017-09-06 02:38:29 UTC]]
420
-  (1.9ms) commit transaction
421
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
422
-  (0.1ms)  SELECT sql
423
- FROM sqlite_master
424
- WHERE name='index_addresses_addresses_on_zipcode_id' AND type='index'
425
- UNION ALL
426
- SELECT sql
427
- FROM sqlite_temp_master
428
- WHERE name='index_addresses_addresses_on_zipcode_id' AND type='index'
429
- 
430
-  (0.1ms)  SELECT sql
431
- FROM sqlite_master
432
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
433
- UNION ALL
434
- SELECT sql
435
- FROM sqlite_temp_master
436
- WHERE name='index_addresses_addresses_on_addressable_id' AND type='index'
437
- 
438
-  (0.1ms)  SELECT sql
439
- FROM sqlite_master
440
- WHERE name='index_addresses_cities_on_state_id' AND type='index'
441
- UNION ALL
442
- SELECT sql
443
- FROM sqlite_temp_master
444
- WHERE name='index_addresses_cities_on_state_id' AND type='index'
445
- 
446
-  (0.1ms)  SELECT sql
447
- FROM sqlite_master
448
- WHERE name='index_addresses_neighborhoods_on_city_id' AND type='index'
449
- UNION ALL
450
- SELECT sql
451
- FROM sqlite_temp_master
452
- WHERE name='index_addresses_neighborhoods_on_city_id' AND type='index'
453
- 
454
-  (0.1ms)  SELECT sql
455
- FROM sqlite_master
456
- WHERE name='index_addresses_states_on_country_id' AND type='index'
457
- UNION ALL
458
- SELECT sql
459
- FROM sqlite_temp_master
460
- WHERE name='index_addresses_states_on_country_id' AND type='index'
461
- 
462
-  (0.1ms)  SELECT sql
463
- FROM sqlite_master
464
- WHERE name='index_addresses_zipcodes_on_neighborhood_id' AND type='index'
465
- UNION ALL
466
- SELECT sql
467
- FROM sqlite_temp_master
468
- WHERE name='index_addresses_zipcodes_on_neighborhood_id' AND type='index'
469
- 
470
-  (0.1ms)  SELECT sql
471
- FROM sqlite_master
472
- WHERE name='index_addresses_zipcodes_on_city_id' AND type='index'
473
- UNION ALL
474
- SELECT sql
475
- FROM sqlite_temp_master
476
- WHERE name='index_addresses_zipcodes_on_city_id' AND type='index'
477
- 
478
-  (0.7ms) begin transaction
479
-  (0.1ms) rollback transaction
480
-  (0.1ms) begin transaction
481
-  (0.1ms) rollback transaction
482
-  (0.1ms) begin transaction
483
-  (0.1ms) rollback transaction
484
-  (0.1ms) begin transaction
485
-  (0.1ms) rollback transaction
486
-  (0.1ms) begin transaction
487
-  (0.1ms) SAVEPOINT active_record_1
488
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
489
-  (0.1ms) RELEASE SAVEPOINT active_record_1
490
-  (0.2ms) SAVEPOINT active_record_1
491
- SQL (0.4ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
492
-  (0.1ms) RELEASE SAVEPOINT active_record_1
493
-  (0.1ms) SAVEPOINT active_record_1
494
- SQL (0.4ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
495
-  (0.1ms) RELEASE SAVEPOINT active_record_1
496
-  (0.1ms) SAVEPOINT active_record_1
497
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
498
-  (0.1ms) RELEASE SAVEPOINT active_record_1
499
- Started GET "/addresses/neighborhoods?city_id=1&format=json" for 127.0.0.1 at 2017-09-05 23:38:36 -0300
500
- Processing by Addresses::NeighborhoodsController#index as JSON
501
- Parameters: {"city_id"=>"1"}
502
- Addresses::City Load (0.4ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
503
- Addresses::Neighborhood Load (0.2ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc [["city_id", 1]]
504
- Completed 200 OK in 23ms (Views: 4.2ms | ActiveRecord: 0.6ms)
505
-  (6.8ms) rollback transaction
506
-  (0.1ms) begin transaction
507
-  (0.1ms) SAVEPOINT active_record_1
508
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
509
-  (0.1ms) RELEASE SAVEPOINT active_record_1
510
-  (0.0ms) SAVEPOINT active_record_1
511
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
512
-  (0.1ms) RELEASE SAVEPOINT active_record_1
513
-  (0.1ms) SAVEPOINT active_record_1
514
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
515
-  (0.1ms) RELEASE SAVEPOINT active_record_1
516
-  (0.1ms) SAVEPOINT active_record_1
517
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
518
-  (0.1ms) RELEASE SAVEPOINT active_record_1
519
-  (0.1ms) SAVEPOINT active_record_1
520
- SQL (0.4ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
521
-  (0.1ms) RELEASE SAVEPOINT active_record_1
522
- Processing by Addresses::ZipcodesController#show as JSON
523
- Parameters: {"zipcode"=>"99999999"}
524
- Addresses::Zipcode Load (0.2ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "99999999"], ["LIMIT", 1]]
525
- Completed 422 Unprocessable Entity in 13ms (Views: 0.3ms | ActiveRecord: 0.2ms)
526
-  (0.6ms) rollback transaction
527
-  (0.1ms) begin transaction
528
-  (0.1ms) SAVEPOINT active_record_1
529
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
530
-  (0.1ms) RELEASE SAVEPOINT active_record_1
531
-  (0.1ms) SAVEPOINT active_record_1
532
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
533
-  (0.1ms) RELEASE SAVEPOINT active_record_1
534
-  (0.1ms) SAVEPOINT active_record_1
535
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
536
-  (0.2ms) RELEASE SAVEPOINT active_record_1
537
-  (0.1ms) SAVEPOINT active_record_1
538
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
539
-  (0.1ms) RELEASE SAVEPOINT active_record_1
540
-  (0.1ms) SAVEPOINT active_record_1
541
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
542
-  (0.1ms) RELEASE SAVEPOINT active_record_1
543
- Processing by Addresses::ZipcodesController#show as JSON
544
- Parameters: {"zipcode"=>"05012010"}
545
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
546
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
547
- Addresses::State Load (0.2ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
548
- Completed 200 OK in 10ms (Views: 1.3ms | ActiveRecord: 0.4ms)
549
-  (0.6ms) rollback transaction
550
-  (0.1ms) begin transaction
551
-  (0.1ms) SAVEPOINT active_record_1
552
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
553
-  (0.1ms) RELEASE SAVEPOINT active_record_1
554
-  (0.1ms) SAVEPOINT active_record_1
555
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
556
-  (0.1ms) RELEASE SAVEPOINT active_record_1
557
-  (0.1ms) SAVEPOINT active_record_1
558
- SQL (0.5ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
559
-  (0.1ms) RELEASE SAVEPOINT active_record_1
560
-  (0.1ms) SAVEPOINT active_record_1
561
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
562
-  (0.1ms) RELEASE SAVEPOINT active_record_1
563
-  (0.1ms) SAVEPOINT active_record_1
564
- SQL (0.4ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
565
-  (0.1ms) RELEASE SAVEPOINT active_record_1
566
- Processing by Addresses::ZipcodesController#show as JSON
567
- Parameters: {"zipcode"=>"05012010"}
568
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
569
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
570
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
571
- Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.4ms)
572
-  (0.6ms) rollback transaction
573
-  (0.1ms) begin transaction
574
-  (0.1ms) rollback transaction
575
-  (0.1ms) begin transaction
576
-  (0.1ms) rollback transaction
577
-  (0.1ms) begin transaction
578
-  (0.1ms) SAVEPOINT active_record_1
579
- SQL (0.6ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
580
-  (0.1ms) RELEASE SAVEPOINT active_record_1
581
-  (0.0ms) SAVEPOINT active_record_1
582
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
583
-  (0.1ms) RELEASE SAVEPOINT active_record_1
584
-  (0.1ms) SAVEPOINT active_record_1
585
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
586
-  (0.1ms) RELEASE SAVEPOINT active_record_1
587
- Processing by Addresses::CitiesController#index as JSON
588
- Parameters: {"state_id"=>"1"}
589
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
590
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc [["state_id", 1]]
591
- Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.3ms)
592
-  (0.5ms) rollback transaction
593
-  (0.1ms) begin transaction
594
-  (0.1ms) SAVEPOINT active_record_1
595
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
596
-  (0.1ms) RELEASE SAVEPOINT active_record_1
597
-  (0.1ms) SAVEPOINT active_record_1
598
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
599
-  (0.1ms) RELEASE SAVEPOINT active_record_1
600
-  (0.1ms) SAVEPOINT active_record_1
601
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:36 UTC], ["updated_at", 2017-09-06 02:38:36 UTC]]
602
-  (0.1ms) RELEASE SAVEPOINT active_record_1
603
- Processing by Addresses::CitiesController#index as JSON
604
- Parameters: {"state_id"=>"1"}
605
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
606
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc [["state_id", 1]]
607
- Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.3ms)
608
-  (0.7ms) rollback transaction
609
-  (0.1ms) begin transaction
610
-  (0.2ms) SAVEPOINT active_record_1
611
- SQL (0.7ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
612
-  (0.1ms) RELEASE SAVEPOINT active_record_1
613
-  (0.1ms) SAVEPOINT active_record_1
614
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
615
-  (0.2ms) RELEASE SAVEPOINT active_record_1
616
-  (0.1ms) SAVEPOINT active_record_1
617
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
618
-  (0.1ms) RELEASE SAVEPOINT active_record_1
619
- Processing by Addresses::CitiesController#show as JSON
620
- Parameters: {"id"=>"1"}
621
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
622
- Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms)
623
-  (0.5ms) rollback transaction
624
-  (0.1ms) begin transaction
625
-  (0.1ms) SAVEPOINT active_record_1
626
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
627
-  (0.1ms) RELEASE SAVEPOINT active_record_1
628
-  (0.1ms) SAVEPOINT active_record_1
629
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
630
-  (0.1ms) RELEASE SAVEPOINT active_record_1
631
-  (0.1ms) SAVEPOINT active_record_1
632
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
633
-  (0.1ms) RELEASE SAVEPOINT active_record_1
634
- Processing by Addresses::CitiesController#show as JSON
635
- Parameters: {"id"=>"1"}
636
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
637
- Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms)
638
-  (0.5ms) rollback transaction
639
-  (0.1ms) begin transaction
640
-  (0.1ms) SAVEPOINT active_record_1
641
- SQL (0.6ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
642
-  (0.1ms) RELEASE SAVEPOINT active_record_1
643
-  (0.1ms) SAVEPOINT active_record_1
644
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
645
-  (0.1ms) RELEASE SAVEPOINT active_record_1
646
-  (0.1ms) SAVEPOINT active_record_1
647
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
648
-  (0.1ms) RELEASE SAVEPOINT active_record_1
649
-  (0.1ms) SAVEPOINT active_record_1
650
- SQL (0.4ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
651
-  (0.2ms) RELEASE SAVEPOINT active_record_1
652
-  (0.1ms) SAVEPOINT active_record_1
653
- SQL (0.4ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
654
-  (0.1ms) RELEASE SAVEPOINT active_record_1
655
- Started GET "/addresses/zipcodes/05012010?format=json" for 127.0.0.1 at 2017-09-05 23:38:37 -0300
656
- Processing by Addresses::ZipcodesController#show as JSON
657
- Parameters: {"zipcode"=>"05012010"}
658
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
659
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
660
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
661
- Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms)
662
-  (1.7ms) rollback transaction
663
-  (0.1ms) begin transaction
664
-  (0.1ms) SAVEPOINT active_record_1
665
- SQL (0.7ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
666
-  (0.1ms) RELEASE SAVEPOINT active_record_1
667
-  (0.1ms) SAVEPOINT active_record_1
668
- SQL (0.4ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
669
-  (0.1ms) RELEASE SAVEPOINT active_record_1
670
-  (0.1ms) SAVEPOINT active_record_1
671
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
672
-  (0.1ms) RELEASE SAVEPOINT active_record_1
673
- Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2017-09-05 23:38:37 -0300
674
- Processing by Addresses::CitiesController#index as JSON
675
- Parameters: {"state_id"=>"1"}
676
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
677
- Addresses::City Load (0.3ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc [["state_id", 1]]
678
- Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 0.4ms)
679
-  (0.6ms) rollback transaction
680
-  (0.1ms) begin transaction
681
-  (0.1ms) SAVEPOINT active_record_1
682
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
683
-  (0.1ms) RELEASE SAVEPOINT active_record_1
684
-  (0.1ms) SAVEPOINT active_record_1
685
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
686
-  (0.1ms) RELEASE SAVEPOINT active_record_1
687
-  (0.1ms) SAVEPOINT active_record_1
688
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
689
-  (0.1ms) RELEASE SAVEPOINT active_record_1
690
- Started GET "/addresses/cities/1?format=json" for 127.0.0.1 at 2017-09-05 23:38:37 -0300
691
- Processing by Addresses::CitiesController#show as JSON
692
- Parameters: {"id"=>"1"}
693
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
694
- Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
695
-  (1.2ms) rollback transaction
696
-  (0.2ms) begin transaction
697
-  (0.1ms) SAVEPOINT active_record_1
698
- SQL (0.7ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
699
-  (0.1ms) RELEASE SAVEPOINT active_record_1
700
-  (0.1ms) SAVEPOINT active_record_1
701
- SQL (0.4ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
702
-  (0.1ms) RELEASE SAVEPOINT active_record_1
703
- Processing by Addresses::CitiesController#index as JSON
704
- Parameters: {"state_id"=>"1"}
705
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
706
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc [["state_id", 1]]
707
- Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms)
708
-  (0.6ms) rollback transaction
709
-  (0.1ms) begin transaction
710
-  (0.1ms) SAVEPOINT active_record_1
711
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
712
-  (0.1ms) RELEASE SAVEPOINT active_record_1
713
-  (0.1ms) SAVEPOINT active_record_1
714
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
715
-  (0.1ms) RELEASE SAVEPOINT active_record_1
716
- Processing by Addresses::CitiesController#index as JSON
717
- Parameters: {"state_id"=>"1"}
718
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
719
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc [["state_id", 1]]
720
- Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.3ms)
721
-  (0.6ms) rollback transaction
722
-  (0.1ms) begin transaction
723
-  (0.1ms) rollback transaction
724
-  (0.1ms) begin transaction
725
-  (0.1ms) rollback transaction
726
-  (0.3ms) begin transaction
727
-  (0.1ms) rollback transaction
728
-  (0.1ms) begin transaction
729
-  (0.1ms) SAVEPOINT active_record_1
730
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
731
-  (0.1ms) RELEASE SAVEPOINT active_record_1
732
-  (0.1ms) SAVEPOINT active_record_1
733
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
734
-  (0.1ms) RELEASE SAVEPOINT active_record_1
735
-  (0.1ms) SAVEPOINT active_record_1
736
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
737
-  (0.1ms) RELEASE SAVEPOINT active_record_1
738
-  (0.1ms) SAVEPOINT active_record_1
739
- SQL (0.2ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
740
-  (0.1ms) RELEASE SAVEPOINT active_record_1
741
-  (0.1ms) SAVEPOINT active_record_1
742
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
743
-  (0.1ms) RELEASE SAVEPOINT active_record_1
744
-  (0.1ms) SAVEPOINT active_record_1
745
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 2], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
746
-  (0.1ms) RELEASE SAVEPOINT active_record_1
747
-  (0.1ms) SAVEPOINT active_record_1
748
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
749
-  (0.1ms) RELEASE SAVEPOINT active_record_1
750
-  (0.0ms) SAVEPOINT active_record_1
751
- SQL (0.4ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
752
-  (0.1ms) RELEASE SAVEPOINT active_record_1
753
-  (0.1ms) SAVEPOINT active_record_1
754
- SQL (0.3ms) INSERT INTO "addresses_addresses" ("number", "created_at", "updated_at", "zipcode_id") VALUES (?, ?, ?, ?) [["number", "Number"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC], ["zipcode_id", 1]]
755
-  (0.1ms) RELEASE SAVEPOINT active_record_1
756
-  (0.6ms) rollback transaction
757
-  (0.1ms) begin transaction
758
-  (0.1ms) rollback transaction
759
-  (0.1ms) begin transaction
760
-  (0.1ms) rollback transaction
761
-  (0.1ms) begin transaction
762
-  (0.1ms) rollback transaction
763
-  (0.1ms) begin transaction
764
-  (0.1ms) rollback transaction
765
-  (0.1ms) begin transaction
766
-  (0.1ms) SAVEPOINT active_record_1
767
- SQL (0.6ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
768
-  (0.1ms) RELEASE SAVEPOINT active_record_1
769
-  (0.1ms) SAVEPOINT active_record_1
770
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
771
-  (0.1ms) RELEASE SAVEPOINT active_record_1
772
-  (0.1ms) SAVEPOINT active_record_1
773
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
774
-  (0.2ms) RELEASE SAVEPOINT active_record_1
775
-  (0.1ms) SAVEPOINT active_record_1
776
- SQL (0.2ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
777
-  (0.2ms) RELEASE SAVEPOINT active_record_1
778
-  (0.1ms) SAVEPOINT active_record_1
779
- SQL (0.1ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
780
-  (0.1ms) RELEASE SAVEPOINT active_record_1
781
-  (0.0ms) SAVEPOINT active_record_1
782
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 2], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
783
-  (0.1ms) RELEASE SAVEPOINT active_record_1
784
-  (0.1ms) SAVEPOINT active_record_1
785
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
786
-  (0.1ms) RELEASE SAVEPOINT active_record_1
787
-  (0.0ms) SAVEPOINT active_record_1
788
- SQL (0.2ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
789
-  (0.1ms) RELEASE SAVEPOINT active_record_1
790
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "12345678"], ["LIMIT", 1]]
791
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
792
- Addresses::State Load (0.2ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
793
-  (0.7ms) rollback transaction
794
-  (0.1ms) begin transaction
795
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
796
- Addresses::State Load (0.2ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ? [["acronym", "SP"], ["LIMIT", 1]]
797
-  (0.1ms) SAVEPOINT active_record_1
798
- SQL (0.7ms) INSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?) [["acronym", "SP"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
799
-  (0.1ms) RELEASE SAVEPOINT active_record_1
800
- Addresses::City Load (0.3ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ? [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
801
-  (0.1ms) SAVEPOINT active_record_1
802
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "São Paulo"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
803
-  (0.1ms) RELEASE SAVEPOINT active_record_1
804
- Addresses::Neighborhood Load (0.1ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ? [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
805
-  (0.1ms) SAVEPOINT active_record_1
806
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
807
-  (0.1ms) RELEASE SAVEPOINT active_record_1
808
-  (0.1ms) SAVEPOINT active_record_1
809
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
810
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
811
-  (0.1ms) RELEASE SAVEPOINT active_record_1
812
-  (0.6ms) rollback transaction
813
-  (0.1ms) begin transaction
814
- Addresses::Zipcode Load (0.3ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
815
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ? [["acronym", "SP"], ["LIMIT", 1]]
816
-  (0.1ms) SAVEPOINT active_record_1
817
- SQL (0.4ms) INSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?) [["acronym", "SP"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
818
-  (0.1ms) RELEASE SAVEPOINT active_record_1
819
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ? [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
820
-  (0.1ms) SAVEPOINT active_record_1
821
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "São Paulo"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
822
-  (0.1ms) RELEASE SAVEPOINT active_record_1
823
- Addresses::Neighborhood Load (0.1ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ? [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
824
-  (0.1ms) SAVEPOINT active_record_1
825
- SQL (0.5ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
826
-  (0.1ms) RELEASE SAVEPOINT active_record_1
827
-  (0.0ms) SAVEPOINT active_record_1
828
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
829
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
830
-  (0.1ms) RELEASE SAVEPOINT active_record_1
831
-  (0.7ms) rollback transaction
832
-  (0.1ms) begin transaction
833
- Addresses::Zipcode Load (0.2ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
834
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ? [["acronym", "SP"], ["LIMIT", 1]]
835
-  (0.1ms) SAVEPOINT active_record_1
836
- SQL (0.6ms) INSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?) [["acronym", "SP"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
837
-  (0.1ms) RELEASE SAVEPOINT active_record_1
838
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ? [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
839
-  (0.1ms) SAVEPOINT active_record_1
840
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "São Paulo"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
841
-  (0.1ms) RELEASE SAVEPOINT active_record_1
842
- Addresses::Neighborhood Load (0.1ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ? [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
843
-  (0.1ms) SAVEPOINT active_record_1
844
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
845
-  (0.1ms) RELEASE SAVEPOINT active_record_1
846
-  (0.1ms) SAVEPOINT active_record_1
847
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
848
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
849
-  (0.1ms) RELEASE SAVEPOINT active_record_1
850
-  (0.6ms) rollback transaction
851
-  (0.1ms) begin transaction
852
- Addresses::Zipcode Load (0.2ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "99999999"], ["LIMIT", 1]]
853
-  (0.1ms) rollback transaction
854
-  (0.1ms) begin transaction
855
-  (0.1ms) SAVEPOINT active_record_1
856
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
857
-  (0.1ms) RELEASE SAVEPOINT active_record_1
858
-  (0.0ms) SAVEPOINT active_record_1
859
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
860
-  (0.1ms) RELEASE SAVEPOINT active_record_1
861
-  (0.0ms) SAVEPOINT active_record_1
862
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
863
-  (0.1ms) RELEASE SAVEPOINT active_record_1
864
-  (0.1ms) SAVEPOINT active_record_1
865
- SQL (0.1ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
866
-  (0.1ms) RELEASE SAVEPOINT active_record_1
867
-  (0.0ms) SAVEPOINT active_record_1
868
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
869
-  (0.1ms) RELEASE SAVEPOINT active_record_1
870
-  (0.0ms) SAVEPOINT active_record_1
871
- SQL (0.1ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 2], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
872
-  (0.1ms) RELEASE SAVEPOINT active_record_1
873
-  (0.0ms) SAVEPOINT active_record_1
874
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
875
-  (0.1ms) RELEASE SAVEPOINT active_record_1
876
-  (0.1ms) SAVEPOINT active_record_1
877
- SQL (0.2ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
878
-  (0.1ms) RELEASE SAVEPOINT active_record_1
879
-  (0.6ms) rollback transaction
880
-  (0.2ms) begin transaction
881
-  (0.1ms) rollback transaction
882
-  (0.1ms) begin transaction
883
-  (0.1ms) rollback transaction
884
-  (0.1ms) begin transaction
885
-  (0.1ms) rollback transaction
886
-  (0.1ms) begin transaction
887
-  (0.2ms) rollback transaction
888
-  (0.1ms) begin transaction
889
-  (0.1ms) rollback transaction
890
-  (0.1ms) begin transaction
891
-  (0.1ms) rollback transaction
892
-  (0.1ms) begin transaction
893
-  (0.1ms) rollback transaction
894
-  (0.1ms) begin transaction
895
-  (0.2ms) rollback transaction
896
-  (1.5ms) begin transaction
897
-  (0.1ms) rollback transaction
898
-  (0.1ms) begin transaction
899
-  (0.1ms) rollback transaction
900
-  (0.1ms) begin transaction
901
-  (0.2ms) rollback transaction
902
-  (0.2ms) begin transaction
903
-  (0.1ms) rollback transaction
904
-  (0.1ms) begin transaction
905
-  (0.1ms) rollback transaction
906
-  (0.1ms) begin transaction
907
-  (0.1ms) rollback transaction
908
-  (0.1ms) begin transaction
909
-  (0.1ms) rollback transaction
910
-  (0.1ms) begin transaction
911
-  (0.1ms) rollback transaction
912
-  (0.1ms) begin transaction
913
-  (0.1ms) rollback transaction
914
-  (0.1ms) begin transaction
915
-  (0.1ms) SAVEPOINT active_record_1
916
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
917
-  (0.1ms) RELEASE SAVEPOINT active_record_1
918
-  (0.0ms) SAVEPOINT active_record_1
919
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
920
-  (0.1ms) RELEASE SAVEPOINT active_record_1
921
-  (0.1ms) SAVEPOINT active_record_1
922
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
923
-  (0.1ms) RELEASE SAVEPOINT active_record_1
924
-  (0.1ms) SAVEPOINT active_record_1
925
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
926
-  (0.1ms) RELEASE SAVEPOINT active_record_1
927
- Processing by Addresses::NeighborhoodsController#index as JSON
928
- Parameters: {"city_id"=>"1"}
929
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
930
- Addresses::Neighborhood Load (0.2ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc [["city_id", 1]]
931
- Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.3ms)
932
-  (0.9ms) rollback transaction
933
-  (0.1ms) begin transaction
934
-  (0.1ms) SAVEPOINT active_record_1
935
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
936
-  (0.1ms) RELEASE SAVEPOINT active_record_1
937
-  (0.1ms) SAVEPOINT active_record_1
938
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
939
-  (0.1ms) RELEASE SAVEPOINT active_record_1
940
-  (0.1ms) SAVEPOINT active_record_1
941
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
942
-  (0.1ms) RELEASE SAVEPOINT active_record_1
943
-  (0.1ms) SAVEPOINT active_record_1
944
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:37 UTC], ["updated_at", 2017-09-06 02:38:37 UTC]]
945
-  (0.1ms) RELEASE SAVEPOINT active_record_1
946
- Processing by Addresses::NeighborhoodsController#index as JSON
947
- Parameters: {"city_id"=>"1"}
948
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
949
- Addresses::Neighborhood Load (0.2ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc [["city_id", 1]]
950
- Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)
951
-  (0.5ms) rollback transaction
952
-  (1.2ms) begin transaction
953
-  (0.1ms) rollback transaction
954
-  (0.1ms) begin transaction
955
-  (0.1ms) rollback transaction
956
-  (0.1ms) begin transaction
957
-  (0.1ms) rollback transaction
958
-  (0.1ms) begin transaction
959
-  (0.1ms) SAVEPOINT active_record_1
960
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
961
-  (0.1ms) RELEASE SAVEPOINT active_record_1
962
-  (0.1ms) SAVEPOINT active_record_1
963
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
964
-  (0.2ms) RELEASE SAVEPOINT active_record_1
965
-  (0.1ms) SAVEPOINT active_record_1
966
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
967
-  (0.1ms) RELEASE SAVEPOINT active_record_1
968
-  (0.1ms) SAVEPOINT active_record_1
969
- SQL (0.4ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
970
-  (0.1ms) RELEASE SAVEPOINT active_record_1
971
- Started GET "/addresses/neighborhoods?city_id=1&format=json" for 127.0.0.1 at 2017-09-05 23:38:57 -0300
972
- Processing by Addresses::NeighborhoodsController#index as JSON
973
- Parameters: {"city_id"=>"1"}
974
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
975
- Addresses::Neighborhood Load (0.2ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc [["city_id", 1]]
976
- Completed 200 OK in 25ms (Views: 3.6ms | ActiveRecord: 0.4ms)
977
-  (6.6ms) rollback transaction
978
-  (0.1ms) begin transaction
979
-  (0.1ms) SAVEPOINT active_record_1
980
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
981
-  (0.1ms) RELEASE SAVEPOINT active_record_1
982
-  (0.1ms) SAVEPOINT active_record_1
983
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
984
-  (0.1ms) RELEASE SAVEPOINT active_record_1
985
-  (0.1ms) SAVEPOINT active_record_1
986
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
987
-  (0.1ms) RELEASE SAVEPOINT active_record_1
988
- Processing by Addresses::CitiesController#index as JSON
989
- Parameters: {"state_id"=>"1"}
990
- Addresses::State Load (0.2ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
991
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc [["state_id", 1]]
992
- Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)
993
-  (0.5ms) rollback transaction
994
-  (0.1ms) begin transaction
995
-  (0.1ms) SAVEPOINT active_record_1
996
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
997
-  (0.1ms) RELEASE SAVEPOINT active_record_1
998
-  (0.1ms) SAVEPOINT active_record_1
999
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1000
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1001
-  (0.1ms) SAVEPOINT active_record_1
1002
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1003
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1004
- Processing by Addresses::CitiesController#index as JSON
1005
- Parameters: {"state_id"=>"1"}
1006
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1007
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc [["state_id", 1]]
1008
- Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.3ms)
1009
-  (0.5ms) rollback transaction
1010
-  (0.1ms) begin transaction
1011
-  (0.1ms) SAVEPOINT active_record_1
1012
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1013
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1014
-  (0.1ms) SAVEPOINT active_record_1
1015
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1016
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1017
-  (0.1ms) SAVEPOINT active_record_1
1018
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1019
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1020
- Processing by Addresses::CitiesController#show as JSON
1021
- Parameters: {"id"=>"1"}
1022
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1023
- Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
1024
-  (0.6ms) rollback transaction
1025
-  (0.1ms) begin transaction
1026
-  (0.1ms) SAVEPOINT active_record_1
1027
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1028
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1029
-  (0.1ms) SAVEPOINT active_record_1
1030
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1031
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1032
-  (0.1ms) SAVEPOINT active_record_1
1033
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1034
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1035
- Processing by Addresses::CitiesController#show as JSON
1036
- Parameters: {"id"=>"1"}
1037
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1038
- Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)
1039
-  (4.2ms) rollback transaction
1040
-  (0.2ms) begin transaction
1041
-  (0.1ms) rollback transaction
1042
-  (0.1ms) begin transaction
1043
-  (0.1ms) SAVEPOINT active_record_1
1044
- SQL (0.6ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1045
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1046
-  (0.0ms) SAVEPOINT active_record_1
1047
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1048
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1049
-  (0.1ms) SAVEPOINT active_record_1
1050
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1051
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1052
-  (0.1ms) SAVEPOINT active_record_1
1053
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1054
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1055
- Processing by Addresses::NeighborhoodsController#index as JSON
1056
- Parameters: {"city_id"=>"1"}
1057
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1058
- Addresses::Neighborhood Load (0.2ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc [["city_id", 1]]
1059
- Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms)
1060
-  (0.5ms) rollback transaction
1061
-  (0.1ms) begin transaction
1062
-  (0.1ms) SAVEPOINT active_record_1
1063
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1064
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1065
-  (0.1ms) SAVEPOINT active_record_1
1066
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1067
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1068
-  (0.1ms) SAVEPOINT active_record_1
1069
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1070
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1071
-  (0.1ms) SAVEPOINT active_record_1
1072
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1073
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1074
- Processing by Addresses::NeighborhoodsController#index as JSON
1075
- Parameters: {"city_id"=>"1"}
1076
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1077
- Addresses::Neighborhood Load (0.3ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."city_id" = ? ORDER BY name asc [["city_id", 1]]
1078
- Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.3ms)
1079
-  (0.5ms) rollback transaction
1080
-  (0.1ms) begin transaction
1081
-  (0.1ms) rollback transaction
1082
-  (0.1ms) begin transaction
1083
-  (0.1ms) rollback transaction
1084
-  (0.1ms) begin transaction
1085
-  (0.1ms) SAVEPOINT active_record_1
1086
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1087
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1088
-  (0.1ms) SAVEPOINT active_record_1
1089
- SQL (0.5ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1090
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1091
-  (0.1ms) SAVEPOINT active_record_1
1092
- SQL (1.8ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1093
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1094
-  (0.1ms) SAVEPOINT active_record_1
1095
- SQL (0.2ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1096
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1097
-  (0.1ms) SAVEPOINT active_record_1
1098
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1099
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1100
-  (0.1ms) SAVEPOINT active_record_1
1101
- SQL (0.1ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 2], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1102
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1103
-  (0.1ms) SAVEPOINT active_record_1
1104
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1105
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1106
-  (0.1ms) SAVEPOINT active_record_1
1107
- SQL (0.4ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1108
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1109
-  (0.1ms) SAVEPOINT active_record_1
1110
- SQL (0.3ms) INSERT INTO "addresses_addresses" ("number", "created_at", "updated_at", "zipcode_id") VALUES (?, ?, ?, ?) [["number", "Number"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC], ["zipcode_id", 1]]
1111
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1112
-  (0.6ms) rollback transaction
1113
-  (0.1ms) begin transaction
1114
-  (0.1ms) rollback transaction
1115
-  (0.1ms) begin transaction
1116
-  (0.1ms) rollback transaction
1117
-  (0.1ms) begin transaction
1118
-  (0.1ms) SAVEPOINT active_record_1
1119
- SQL (0.6ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1120
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1121
-  (0.1ms) SAVEPOINT active_record_1
1122
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1123
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1124
-  (0.2ms) SAVEPOINT active_record_1
1125
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1126
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1127
-  (0.1ms) SAVEPOINT active_record_1
1128
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1129
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1130
-  (0.1ms) SAVEPOINT active_record_1
1131
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1132
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1133
- Processing by Addresses::ZipcodesController#show as JSON
1134
- Parameters: {"zipcode"=>"99999999"}
1135
- Addresses::Zipcode Load (0.2ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "99999999"], ["LIMIT", 1]]
1136
- Completed 422 Unprocessable Entity in 12ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1137
-  (0.7ms) rollback transaction
1138
-  (0.1ms) begin transaction
1139
-  (0.1ms) SAVEPOINT active_record_1
1140
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1141
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1142
-  (0.1ms) SAVEPOINT active_record_1
1143
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1144
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1145
-  (0.1ms) SAVEPOINT active_record_1
1146
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1147
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1148
-  (0.1ms) SAVEPOINT active_record_1
1149
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1150
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1151
-  (0.1ms) SAVEPOINT active_record_1
1152
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1153
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1154
- Processing by Addresses::ZipcodesController#show as JSON
1155
- Parameters: {"zipcode"=>"05012010"}
1156
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
1157
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1158
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1159
- Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.3ms)
1160
-  (0.6ms) rollback transaction
1161
-  (0.1ms) begin transaction
1162
-  (0.1ms) SAVEPOINT active_record_1
1163
- SQL (0.6ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1164
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1165
-  (0.1ms) SAVEPOINT active_record_1
1166
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1167
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1168
-  (0.1ms) SAVEPOINT active_record_1
1169
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:57 UTC], ["updated_at", 2017-09-06 02:38:57 UTC]]
1170
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1171
-  (0.4ms) SAVEPOINT active_record_1
1172
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1173
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1174
-  (0.1ms) SAVEPOINT active_record_1
1175
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1176
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1177
- Processing by Addresses::ZipcodesController#show as JSON
1178
- Parameters: {"zipcode"=>"05012010"}
1179
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
1180
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1181
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1182
- Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms)
1183
-  (0.6ms) rollback transaction
1184
-  (0.1ms) begin transaction
1185
-  (0.1ms) rollback transaction
1186
-  (0.1ms) begin transaction
1187
-  (0.1ms) rollback transaction
1188
-  (0.1ms) begin transaction
1189
-  (0.1ms) rollback transaction
1190
-  (0.1ms) begin transaction
1191
-  (0.1ms) rollback transaction
1192
-  (0.1ms) begin transaction
1193
-  (0.1ms) rollback transaction
1194
-  (0.1ms) begin transaction
1195
-  (0.2ms) rollback transaction
1196
-  (0.1ms) begin transaction
1197
-  (0.1ms) rollback transaction
1198
-  (0.1ms) begin transaction
1199
-  (0.1ms) rollback transaction
1200
-  (0.1ms) begin transaction
1201
-  (0.1ms) rollback transaction
1202
-  (0.1ms) begin transaction
1203
-  (0.1ms) rollback transaction
1204
-  (0.1ms) begin transaction
1205
-  (0.1ms) rollback transaction
1206
-  (0.1ms) begin transaction
1207
-  (0.1ms) SAVEPOINT active_record_1
1208
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1209
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1210
-  (0.0ms) SAVEPOINT active_record_1
1211
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1212
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1213
-  (0.1ms) SAVEPOINT active_record_1
1214
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1215
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1216
- Started GET "/addresses/cities?state_id=1&format=json" for 127.0.0.1 at 2017-09-05 23:38:58 -0300
1217
- Processing by Addresses::CitiesController#index as JSON
1218
- Parameters: {"state_id"=>"1"}
1219
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1220
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."state_id" = ? ORDER BY name asc [["state_id", 1]]
1221
- Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.3ms)
1222
-  (0.5ms) rollback transaction
1223
-  (0.1ms) begin transaction
1224
-  (0.1ms) SAVEPOINT active_record_1
1225
- SQL (1.0ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1226
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1227
-  (0.1ms) SAVEPOINT active_record_1
1228
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1229
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1230
-  (0.1ms) SAVEPOINT active_record_1
1231
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1232
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1233
- Started GET "/addresses/cities/1?format=json" for 127.0.0.1 at 2017-09-05 23:38:58 -0300
1234
- Processing by Addresses::CitiesController#show as JSON
1235
- Parameters: {"id"=>"1"}
1236
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1237
- Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms)
1238
-  (0.7ms) rollback transaction
1239
-  (0.1ms) begin transaction
1240
-  (0.1ms) rollback transaction
1241
-  (0.1ms) begin transaction
1242
-  (0.1ms) SAVEPOINT active_record_1
1243
- SQL (0.5ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1244
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1245
-  (0.1ms) SAVEPOINT active_record_1
1246
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1247
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1248
- Processing by Addresses::StatesController#index as JSON
1249
- Parameters: {"state_id"=>"1"}
1250
- Addresses::State Load (0.2ms) SELECT "addresses_states".* FROM "addresses_states" ORDER BY name asc
1251
- Completed 200 OK in 21ms (Views: 2.6ms | ActiveRecord: 0.2ms)
1252
-  (0.5ms) rollback transaction
1253
-  (0.1ms) begin transaction
1254
-  (0.1ms) SAVEPOINT active_record_1
1255
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1256
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1257
-  (0.1ms) SAVEPOINT active_record_1
1258
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1259
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1260
- Processing by Addresses::StatesController#index as JSON
1261
- Parameters: {"state_id"=>"1"}
1262
- Addresses::State Load (0.2ms) SELECT "addresses_states".* FROM "addresses_states" ORDER BY name asc
1263
- Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
1264
-  (2.9ms) rollback transaction
1265
-  (0.1ms) begin transaction
1266
-  (0.1ms) rollback transaction
1267
-  (0.1ms) begin transaction
1268
-  (0.1ms) rollback transaction
1269
-  (0.1ms) begin transaction
1270
-  (0.1ms) rollback transaction
1271
-  (0.1ms) begin transaction
1272
-  (0.1ms) rollback transaction
1273
-  (0.1ms) begin transaction
1274
-  (0.1ms) rollback transaction
1275
-  (0.1ms) begin transaction
1276
-  (0.1ms) rollback transaction
1277
-  (0.1ms) begin transaction
1278
-  (0.1ms) rollback transaction
1279
-  (0.1ms) begin transaction
1280
-  (0.1ms) SAVEPOINT active_record_1
1281
- SQL (1.1ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1282
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1283
-  (0.1ms) SAVEPOINT active_record_1
1284
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1285
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1286
-  (0.1ms) SAVEPOINT active_record_1
1287
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1288
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1289
-  (0.1ms) SAVEPOINT active_record_1
1290
- SQL (0.2ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1291
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1292
-  (0.1ms) SAVEPOINT active_record_1
1293
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1294
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1295
-  (0.1ms) SAVEPOINT active_record_1
1296
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 2], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1297
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1298
-  (0.1ms) SAVEPOINT active_record_1
1299
- SQL (0.3ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1300
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1301
-  (0.1ms) SAVEPOINT active_record_1
1302
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1303
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1304
-  (0.6ms) rollback transaction
1305
-  (0.1ms) begin transaction
1306
- Addresses::Zipcode Load (0.2ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
1307
- Addresses::State Load (0.3ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ? [["acronym", "SP"], ["LIMIT", 1]]
1308
-  (0.1ms) SAVEPOINT active_record_1
1309
- SQL (0.7ms) INSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?) [["acronym", "SP"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1310
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1311
- Addresses::City Load (0.2ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ? [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
1312
-  (0.1ms) SAVEPOINT active_record_1
1313
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "São Paulo"], ["state_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1314
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1315
- Addresses::Neighborhood Load (0.2ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ? [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
1316
-  (0.1ms) SAVEPOINT active_record_1
1317
- SQL (0.3ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1318
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1319
-  (0.1ms) SAVEPOINT active_record_1
1320
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1321
- SQL (0.3ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1322
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1323
-  (0.6ms) rollback transaction
1324
-  (0.1ms) begin transaction
1325
- Addresses::Zipcode Load (0.3ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
1326
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ? [["acronym", "SP"], ["LIMIT", 1]]
1327
-  (0.1ms) SAVEPOINT active_record_1
1328
- SQL (0.4ms) INSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?) [["acronym", "SP"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1329
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1330
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ? [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
1331
-  (0.1ms) SAVEPOINT active_record_1
1332
- SQL (0.3ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "São Paulo"], ["state_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1333
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1334
- Addresses::Neighborhood Load (0.1ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ? [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
1335
-  (0.1ms) SAVEPOINT active_record_1
1336
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1337
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1338
-  (0.0ms) SAVEPOINT active_record_1
1339
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1340
- SQL (0.2ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1341
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1342
-  (0.6ms) rollback transaction
1343
-  (0.1ms) begin transaction
1344
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
1345
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."acronym" = ? LIMIT ? [["acronym", "SP"], ["LIMIT", 1]]
1346
-  (0.1ms) SAVEPOINT active_record_1
1347
- SQL (0.4ms) INSERT INTO "addresses_states" ("acronym", "created_at", "updated_at") VALUES (?, ?, ?) [["acronym", "SP"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1348
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1349
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."name" = ? AND "addresses_cities"."state_id" = ? LIMIT ? [["name", "São Paulo"], ["state_id", 1], ["LIMIT", 1]]
1350
-  (0.1ms) SAVEPOINT active_record_1
1351
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "São Paulo"], ["state_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1352
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1353
- Addresses::Neighborhood Load (0.1ms) SELECT "addresses_neighborhoods".* FROM "addresses_neighborhoods" WHERE "addresses_neighborhoods"."name" = ? AND "addresses_neighborhoods"."city_id" = ? LIMIT ? [["name", "Vila Pompeia"], ["city_id", 1], ["LIMIT", 1]]
1354
-  (0.1ms) SAVEPOINT active_record_1
1355
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Vila Pompeia"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1356
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1357
-  (0.1ms) SAVEPOINT active_record_1
1358
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1359
- SQL (0.4ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Rua Ministro Gastão Mesquita"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1360
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1361
-  (0.6ms) rollback transaction
1362
-  (0.1ms) begin transaction
1363
- Addresses::Zipcode Load (0.2ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "99999999"], ["LIMIT", 1]]
1364
-  (0.1ms) rollback transaction
1365
-  (0.3ms) begin transaction
1366
-  (0.1ms) SAVEPOINT active_record_1
1367
- SQL (0.4ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1368
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1369
-  (0.1ms) SAVEPOINT active_record_1
1370
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1371
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1372
-  (0.1ms) SAVEPOINT active_record_1
1373
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1374
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1375
-  (0.1ms) SAVEPOINT active_record_1
1376
- SQL (0.1ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1377
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1378
-  (0.1ms) SAVEPOINT active_record_1
1379
- SQL (0.2ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 2], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1380
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1381
-  (0.1ms) SAVEPOINT active_record_1
1382
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 2], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1383
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1384
-  (0.1ms) SAVEPOINT active_record_1
1385
- SQL (0.2ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 2], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1386
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1387
-  (0.1ms) SAVEPOINT active_record_1
1388
- SQL (0.4ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "12345678"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1389
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1390
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "12345678"], ["LIMIT", 1]]
1391
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1392
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1393
-  (0.7ms) rollback transaction
1394
-  (0.1ms) begin transaction
1395
-  (0.1ms) rollback transaction
1396
-  (0.1ms) begin transaction
1397
-  (0.1ms) rollback transaction
1398
-  (0.2ms) begin transaction
1399
-  (0.2ms) rollback transaction
1400
-  (0.1ms) begin transaction
1401
-  (0.2ms) SAVEPOINT active_record_1
1402
- SQL (0.6ms) INSERT INTO "addresses_countries" ("name", "acronym", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Country name"], ["acronym", "Country acronym"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1403
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1404
-  (0.2ms) SAVEPOINT active_record_1
1405
- SQL (0.3ms) INSERT INTO "addresses_states" ("name", "acronym", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "State name"], ["acronym", "State acronym"], ["country_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1406
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1407
-  (0.2ms) SAVEPOINT active_record_1
1408
- SQL (0.2ms) INSERT INTO "addresses_cities" ("name", "state_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "City name"], ["state_id", 1], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1409
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1410
-  (0.1ms) SAVEPOINT active_record_1
1411
- SQL (0.3ms) INSERT INTO "addresses_neighborhoods" ("city_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["city_id", 1], ["name", "Neighborhood name"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1412
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1413
-  (0.1ms) SAVEPOINT active_record_1
1414
- SQL (0.4ms) INSERT INTO "addresses_zipcodes" ("street", "city_id", "neighborhood_id", "number", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["street", "Street name"], ["city_id", 1], ["neighborhood_id", 1], ["number", "05012010"], ["created_at", 2017-09-06 02:38:58 UTC], ["updated_at", 2017-09-06 02:38:58 UTC]]
1415
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1416
- Started GET "/addresses/zipcodes/05012010?format=json" for 127.0.0.1 at 2017-09-05 23:38:58 -0300
1417
- Processing by Addresses::ZipcodesController#show as JSON
1418
- Parameters: {"zipcode"=>"05012010"}
1419
- Addresses::Zipcode Load (0.1ms) SELECT "addresses_zipcodes".* FROM "addresses_zipcodes" WHERE "addresses_zipcodes"."number" = ? LIMIT ? [["number", "05012010"], ["LIMIT", 1]]
1420
- Addresses::City Load (0.1ms) SELECT "addresses_cities".* FROM "addresses_cities" WHERE "addresses_cities"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1421
- Addresses::State Load (0.1ms) SELECT "addresses_states".* FROM "addresses_states" WHERE "addresses_states"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1422
- Completed 200 OK in 8ms (Views: 1.4ms | ActiveRecord: 0.4ms)
1423
-  (1.2ms) rollback transaction